diff options
author | Ben Mezger <me@benmezger.nl> | 2021-02-02 20:02:53 -0300 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2021-02-04 15:32:51 -0700 |
commit | a7c515e1b56e8cab34ca2647b4116904df9c8250 (patch) | |
tree | 95b028c56fae7acdbd554ee4784f42aafc6ee472 /commands/genautocomplete.go | |
parent | 216b00f358dbfa36b34ff515d7f4f88387156db8 (diff) |
Refactor: Remove powershell support
Diffstat (limited to 'commands/genautocomplete.go')
-rw-r--r-- | commands/genautocomplete.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/commands/genautocomplete.go b/commands/genautocomplete.go index b72e5a930..044a052e6 100644 --- a/commands/genautocomplete.go +++ b/commands/genautocomplete.go @@ -22,10 +22,8 @@ var _ cmder = (*genautocompleteCmd)(nil) type genautocompleteCmd struct { autocompleteTarget string - - // bash or zsh + // bash, zsh or fish autocompleteType string - *baseCmd } @@ -45,7 +43,7 @@ for convenience, and the command may need superuser rights, e.g.: Add ` + "`--completionfile=/path/to/file`" + ` flag to set alternative file-path and name. -Add ` + "`--type={bash, zsh, fish or powershell}`" + ` flag to set alternative +Add ` + "`--type={bash, zsh or fish}`" + ` flag to set alternative shell type. Logout and in again to reload the completion scripts, @@ -62,8 +60,6 @@ or just source them in directly: err = cmd.Root().GenBashCompletionFile(cc.autocompleteTarget) case "fish": err = cmd.Root().GenFishCompletionFile(cc.autocompleteTarget, true) - case "powershell": - err = cmd.Root().GenFishCompletionFile(cc.autocompleteTarget, true) default: return newUserError("Unsupported completion type") } |