diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-04-11 14:40:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-04-11 15:34:26 +0200 |
commit | 38f68cd16282f7fe570c3800986da3651c4b195e (patch) | |
tree | 59de730b87f5b7a66b171c1bbd44d77a68e75839 | |
parent | a67650b6f764d201fde22b1bc3c06b923fdc5438 (diff) | |
download | hugo-38f68cd16282f7fe570c3800986da3651c4b195e.tar.gz hugo-38f68cd16282f7fe570c3800986da3651c4b195e.zip |
commands: Adjust completions
-rw-r--r-- | commands/new.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/commands/new.go b/commands/new.go index 144da7cd7..045a920a3 100644 --- a/commands/new.go +++ b/commands/new.go @@ -24,7 +24,6 @@ import ( "github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/create" "github.com/gohugoio/hugo/create/skeletons" - "github.com/gohugoio/hugo/resources/kinds" "github.com/spf13/cobra" ) @@ -68,7 +67,6 @@ Ensure you run this within the root directory of your site.`, return []string{}, cobra.ShellCompDirectiveNoFileComp | cobra.ShellCompDirectiveFilterDirs } cmd.Flags().StringVarP(&contentType, "kind", "k", "", "content type to create") - _ = cmd.RegisterFlagCompletionFunc("kind", cobra.FixedCompletions(kinds.AllKindsInPages, cobra.ShellCompDirectiveNoFileComp)) cmd.Flags().String("editor", "", "edit new content with this editor, if provided") _ = cmd.RegisterFlagCompletionFunc("editor", cobra.NoFileCompletions) cmd.Flags().BoolVarP(&force, "force", "f", false, "overwrite file if it already exists") |