Skip to content

Commit a7c515e

Browse files
benmezgeranthonyfok
authored andcommitted
Refactor: Remove powershell support
1 parent 216b00f commit a7c515e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

commands/genautocomplete.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ var _ cmder = (*genautocompleteCmd)(nil)
2222

2323
type genautocompleteCmd struct {
2424
autocompleteTarget string
25-
26-
// bash or zsh
25+
// bash, zsh or fish
2726
autocompleteType string
28-
2927
*baseCmd
3028
}
3129

@@ -45,7 +43,7 @@ for convenience, and the command may need superuser rights, e.g.:
4543
Add ` + "`--completionfile=/path/to/file`" + ` flag to set alternative
4644
file-path and name.
4745
48-
Add ` + "`--type={bash, zsh, fish or powershell}`" + ` flag to set alternative
46+
Add ` + "`--type={bash, zsh or fish}`" + ` flag to set alternative
4947
shell type.
5048
5149
Logout and in again to reload the completion scripts,
@@ -62,8 +60,6 @@ or just source them in directly:
6260
err = cmd.Root().GenBashCompletionFile(cc.autocompleteTarget)
6361
case "fish":
6462
err = cmd.Root().GenFishCompletionFile(cc.autocompleteTarget, true)
65-
case "powershell":
66-
err = cmd.Root().GenFishCompletionFile(cc.autocompleteTarget, true)
6763
default:
6864
return newUserError("Unsupported completion type")
6965
}

docs/content/en/commands/hugo_gen_autocomplete.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ for convenience, and the command may need superuser rights, e.g.:
2020
Add `--completionfile=/path/to/file` flag to set alternative
2121
file-path and name.
2222

23-
Add `--type={bash, zsh, fish or powershell}` flag to set alternative
23+
Add `--type={bash, zsh or fish}` flag to set alternative
2424
shell type.
2525

2626
Logout and in again to reload the completion scripts,
@@ -37,7 +37,7 @@ hugo gen autocomplete [flags]
3737
```
3838
--completionfile string autocompletion file (default "/etc/bash_completion.d/hugo.sh")
3939
-h, --help help for autocomplete
40-
--type string autocompletion type (zsh, bash, fish or powershell) (default "bash")
40+
--type string autocompletion type (zsh, bash or fish) (default "bash")
4141
```
4242

4343
### Options inherited from parent commands

0 commit comments

Comments
 (0)