Skip to content

Commit

Permalink
Remove hugo gen autocomplete
Browse files Browse the repository at this point in the history
Closes #8862
  • Loading branch information
jmooring authored and bep committed Feb 1, 2022
1 parent 5ca40c8 commit 3336762
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 156 deletions.
5 changes: 4 additions & 1 deletion commands/commands_test.go
Expand Up @@ -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")}, ""},
Expand Down
1 change: 0 additions & 1 deletion commands/gen.go
Expand Up @@ -31,7 +31,6 @@ func newGenCmd() *genCmd {
})

cc.cmd.AddCommand(
newGenautocompleteCmd().getCommand(),
newGenDocCmd().getCommand(),
newGenManCmd().getCommand(),
createGenDocsHelper().getCommand(),
Expand Down
93 changes: 0 additions & 93 deletions commands/genautocomplete.go

This file was deleted.

1 change: 0 additions & 1 deletion docs/content/en/commands/hugo.md
Expand Up @@ -68,7 +68,6 @@ hugo [flags]

### SEE ALSO

* [hugo check](/commands/hugo_check/) - Contains some verification checks
* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell
* [hugo config](/commands/hugo_config/) - Print the site configuration
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/commands/hugo_gen.md
Expand Up @@ -33,7 +33,6 @@ A collection of several useful generators.
### SEE ALSO

* [hugo](/commands/hugo/) - hugo builds your site
* [hugo gen autocomplete](/commands/hugo_gen_autocomplete/) - Generate shell autocompletion script for Hugo
* [hugo gen chromastyles](/commands/hugo_gen_chromastyles/) - Generate CSS stylesheet for the Chroma code highlighter
* [hugo gen doc](/commands/hugo_gen_doc/) - Generate Markdown documentation for the Hugo CLI.
* [hugo gen man](/commands/hugo_gen_man/) - Generate man pages for the Hugo CLI
Expand Down
58 changes: 0 additions & 58 deletions docs/content/en/commands/hugo_gen_autocomplete.md

This file was deleted.

2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Expand Up @@ -65,7 +65,7 @@ parts:
ldd hugo || :
echo " * Building shell completion..."
./hugo gen autocomplete --completionfile=hugo-completion
./hugo completion bash > hugo-completion
echo " * Installing to ${SNAPCRAFT_PART_INSTALL}..."
install -d $SNAPCRAFT_PART_INSTALL/bin
Expand Down

0 comments on commit 3336762

Please sign in to comment.