summaryrefslogtreecommitdiffstats
path: root/commands/commands_test.go
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2022-01-30 15:33:15 -0800
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-01 23:23:30 +0100
commit3336762939d8600f9af943128e7072c8789a6ae3 (patch)
tree90346a1fc6238c44292b71d7951b65d0d0cbac5b /commands/commands_test.go
parent5ca40c8f7cbf3be64d7b5e813d06524afda48b28 (diff)
Remove hugo gen autocomplete
Closes #8862
Diffstat (limited to 'commands/commands_test.go')
-rw-r--r--commands/commands_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/commands_test.go b/commands/commands_test.go
index 9966cd937..beb817527 100644
--- a/commands/commands_test.go
+++ b/commands/commands_test.go
@@ -274,11 +274,14 @@ func TestCommandsExecute(t *testing.T) {
// no args = hugo build
{nil, []string{sourceFlag}, ""},
{nil, []string{sourceFlag, "--renderToMemory"}, ""},
+ {[]string{"completion", "bash"}, nil, ""},
+ {[]string{"completion", "fish"}, nil, ""},
+ {[]string{"completion", "powershell"}, nil, ""},
+ {[]string{"completion", "zsh"}, nil, ""},
{[]string{"config"}, []string{sourceFlag}, ""},
{[]string{"convert", "toTOML"}, []string{sourceFlag, "-o=" + filepath.Join(dirOut, "toml")}, ""},
{[]string{"convert", "toYAML"}, []string{sourceFlag, "-o=" + filepath.Join(dirOut, "yaml")}, ""},
{[]string{"convert", "toJSON"}, []string{sourceFlag, "-o=" + filepath.Join(dirOut, "json")}, ""},
- {[]string{"gen", "autocomplete"}, []string{"--completionfile=" + filepath.Join(dirOut, "autocomplete.txt")}, ""},
{[]string{"gen", "chromastyles"}, []string{"--style=manni"}, ""},
{[]string{"gen", "doc"}, []string{"--dir=" + filepath.Join(dirOut, "doc")}, ""},
{[]string{"gen", "man"}, []string{"--dir=" + filepath.Join(dirOut, "man")}, ""},