]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands/new: Remove format flag from new content cmd
authorJoe Mooring <joe.mooring@veriphor.com>
Fri, 29 Sep 2023 19:17:35 +0000 (12:17 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 30 Oct 2023 08:02:26 +0000 (09:02 +0100)
Fixes #11462

commands/new.go
docs/content/en/commands/hugo_new_content.md

index ffd75b2bbb4249a7f6f288c864bc2f49af5f175b..8e348366dd86c65d4be0930fa44ec8c24d94e7c4 100644 (file)
@@ -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().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().StringVar(&format, "format", "toml", "preferred file format (toml, yaml or json)")
                                        applyLocalFlagsBuildConfig(cmd, r)
 
                                },
index dd646766b8199677cdb173d9c0b18de8ad5852b4..cc53346ad0dbffd954e9b2edc45b48e0c857de40 100644 (file)
@@ -30,7 +30,6 @@ hugo new content [path] [flags]
   -c, --contentDir string   filesystem path to content directory
       --editor string       edit new content with this editor, if provided
   -f, --force               overwrite file if it already exists
-      --format string       preferred file format (toml, yaml or json) (default "toml")
   -h, --help                help for content
   -k, --kind string         content type to create
   -t, --theme strings       themes to use (located in /themes/THEMENAME/)