1
0
mirror of synced 2026-03-31 14:04:19 +00:00

Support bash, fish, zsh, and powershell shell completions as separate sub-commands

This commit is contained in:
leigh capili
2020-09-14 13:54:27 -06:00
parent ea010895a0
commit cbcdfc5f6c
12 changed files with 400 additions and 37 deletions

View File

@@ -0,0 +1,52 @@
## gotk completion powershell
Generates powershell completion scripts
### Synopsis
Generates powershell completion scripts
```
gotk completion powershell [flags]
```
### Examples
```
To load completion run
. <(gotk completion powershell)
To configure your powershell shell to load completions for each session add to your powershell profile
Windows:
cd "$env:USERPROFILE\Documents\WindowsPowerShell\Modules"
gotk completion >> gotk-completion.ps1
Linux:
cd "${XDG_CONFIG_HOME:-"$HOME/.config/"}/powershell/modules"
gotk completion >> gotk-completions.ps1
```
### Options
```
-h, --help help for powershell
```
### Options inherited from parent commands
```
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
--namespace string the namespace scope for this operation (default "gitops-system")
--timeout duration timeout for this operation (default 5m0s)
--verbose print generated objects
```
### SEE ALSO
* [gotk completion](gotk_completion.md) - Generates completion scripts for various shells