jcli completion
jcli completion
Generate shell completion scripts
Synopsis
Generate shell completion scripts Normally you don’t need to do more extra work to have this feature if you’ve installed jcli by brew
jcli completion [flags]
Examples
Installing bash completion on macOS using homebrew
If running Bash 3.2 included with macOS
brew install bash-completion
or, if running Bash 4.1+
brew install bash-completion@2
You may need to add the completion to your completion directory by the following command
jcli completion > $(brew --prefix)/etc/bash_completion.d/jcli
If you get trouble, please visit https://github.com/jenkins-zh/jenkins-cli/issues/83.
In order to have good experience on zsh completion, ohmyzsh is a good choice.
Please install ohmyzsh by the following command
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Get more details about onmyzsh from https://github.com/ohmyzsh/ohmyzsh
Load the jcli completion code for zsh[1] into the current shell
source <(jcli completion --type zsh)
Set the jcli completion code for zsh[1] to autoload on startup
jcli completion --type zsh > "${fpath[1]}/_jcli"
Options
-h, --help help for completion
--type string Generate different types of shell which are [zsh bash powerShell] (default "bash")
Options inherited from parent commands
--config-load If load a default config file (default true)
--configFile string 指定另外一个配置文件
--debug Print the output into debug.html
--doctor Run the diagnose for current command
--insecureSkipVerify If skip insecure skip verify (default true)
-j, --jenkins string 选择本次执行的 Jenkins
--logger-level string Logger level which could be: debug, info, warn, error (default "warn")
--proxy string The proxy of connection to Jenkins
--proxy-auth string The auth of proxy of connection to Jenkins
--proxy-disable Disable proxy setting
--token string The token of Jenkins
--url string The URL of Jenkins
--username string The username of Jenkins
SEE ALSO
- jcli - Jenkins CLI written by golang which could help you with your multiple Jenkins
当前内容版权归 Jenkins中文社区 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Jenkins中文社区 .