2025-03-14 21:59:59 -06:00
|
|
|
# gcrane completion
|
|
|
|
|
|
|
|
|
|
> Generate the autocompletion script for gcrane for the specified shell.
|
2025-12-16 10:20:31 -07:00
|
|
|
> The available shells are Bash, fish, PowerShell, and Zsh.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
|
|
|
|
|
|
|
|
|
- Generate the autocompletion script for your shell:
|
|
|
|
|
|
|
|
|
|
`gcrane completion {{shell_name}}`
|
|
|
|
|
|
|
|
|
|
- Disable completion descriptions:
|
|
|
|
|
|
|
|
|
|
`gcrane completion {{shell_name}} --no-descriptions`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Load completions in your current shell session (PowerShell):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`gcrane completion powershell | Out-String | Invoke-Expression`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Load completions for every new session (PowerShell):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`gcrane completion powershell | Out-String | Invoke-Expression`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`gcrane completion {{shell_name}} {{[-h|--help]}}`
|