← 返回命令列表

Linux command

gcrane-completion 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

gcrane completion [shell_name]

Disable

gcrane completion [shell_name] --no-descriptions

Example

source <(gcrane completion bash)

Example

gcrane completion fish | source

Example

gcrane completion bash > /etc/bash_completion.d/gcrane

Example

gcrane completion zsh > "${fpath[1]}/_gcrane"

Example

gcrane completion fish > ~/.config/fish/completions/gcrane.fish

Example

gcrane completion [shell_name] -h

说明

gcrane completion generates shell autocompletion scripts for the gcrane command-line tool. gcrane is a tool for working with container registries, part of Google's go-containerregistry project. Completions provide tab-completion for gcrane commands, flags, and arguments, improving command-line efficiency. The generated scripts must be sourced or installed according to your shell's completion system. For persistent completions, install the output to the appropriate location for your shell (bash_completion.d for Bash, fpath for Zsh, or ~/.config/fish/completions for fish).

参数

bash
Generate Bash completion script
zsh
Generate Zsh completion script
fish
Generate fish completion script
powershell
Generate PowerShell completion script
--no-descriptions
Disable completion descriptions
-h, --help
Display help for completion command

FAQ

What is the gcrane-completion command used for?

gcrane completion generates shell autocompletion scripts for the gcrane command-line tool. gcrane is a tool for working with container registries, part of Google's go-containerregistry project. Completions provide tab-completion for gcrane commands, flags, and arguments, improving command-line efficiency. The generated scripts must be sourced or installed according to your shell's completion system. For persistent completions, install the output to the appropriate location for your shell (bash_completion.d for Bash, fpath for Zsh, or ~/.config/fish/completions for fish).

How do I run a basic gcrane-completion example?

Run `gcrane completion [shell_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does bash do in gcrane-completion?

Generate Bash completion script