mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Move cobra.MousetrapHelpText to hugo_windows.go
Fix build error due to Cobra API change, see spf13/cobra#195: Compile mousetrap only on Windows
This commit is contained in:
@@ -196,13 +196,6 @@ func init() {
|
||||
|
||||
// For bash-completion
|
||||
HugoCmd.PersistentFlags().SetAnnotation("logFile", cobra.BashCompFilenameExt, []string{})
|
||||
|
||||
// This message will be shown to Windows users if Hugo is opened from explorer.exe
|
||||
cobra.MousetrapHelpText = `
|
||||
|
||||
Hugo is a command-line tool
|
||||
|
||||
You need to open cmd.exe and run it from there.`
|
||||
}
|
||||
|
||||
func LoadDefaultSettings() {
|
||||
|
Reference in New Issue
Block a user