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:
Anthony Fok
2015-12-16 20:37:20 -07:00
parent 705104338e
commit 9c39593dee
2 changed files with 27 additions and 7 deletions

View File

@@ -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() {