mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
a2488b1c95
commit
27b22cd87e
2 changed files with 0 additions and 2 deletions
|
@ -63,7 +63,6 @@ Ensure you run this within the root directory of your site.`,
|
||||||
cmd.Flags().StringVarP(&contentType, "kind", "k", "", "content type to create")
|
cmd.Flags().StringVarP(&contentType, "kind", "k", "", "content type to create")
|
||||||
cmd.Flags().String("editor", "", "edit new content with this editor, if provided")
|
cmd.Flags().String("editor", "", "edit new content with this editor, if provided")
|
||||||
cmd.Flags().BoolVarP(&force, "force", "f", false, "overwrite file if it already exists")
|
cmd.Flags().BoolVarP(&force, "force", "f", false, "overwrite file if it already exists")
|
||||||
cmd.Flags().StringVar(&format, "format", "toml", "preferred file format (toml, yaml or json)")
|
|
||||||
applyLocalFlagsBuildConfig(cmd, r)
|
applyLocalFlagsBuildConfig(cmd, r)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -30,7 +30,6 @@ hugo new content [path] [flags]
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
--editor string edit new content with this editor, if provided
|
--editor string edit new content with this editor, if provided
|
||||||
-f, --force overwrite file if it already exists
|
-f, --force overwrite file if it already exists
|
||||||
--format string preferred file format (toml, yaml or json) (default "toml")
|
|
||||||
-h, --help help for content
|
-h, --help help for content
|
||||||
-k, --kind string content type to create
|
-k, --kind string content type to create
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
|
|
Loading…
Reference in a new issue