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

  1. jcli completion [flags]

Examples

  1. Installing bash completion on macOS using homebrew
  2. If running Bash 3.2 included with macOS
  3. brew install bash-completion
  4. or, if running Bash 4.1+
  5. brew install bash-completion@2
  6. You may need to add the completion to your completion directory by the following command
  7. jcli completion > $(brew --prefix)/etc/bash_completion.d/jcli
  8. If you get trouble, please visit https://github.com/jenkins-zh/jenkins-cli/issues/83.
  9. In order to have good experience on zsh completion, ohmyzsh is a good choice.
  10. Please install ohmyzsh by the following command
  11. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  12. Get more details about onmyzsh from https://github.com/ohmyzsh/ohmyzsh
  13. Load the jcli completion code for zsh[1] into the current shell
  14. source <(jcli completion --type zsh)
  15. Set the jcli completion code for zsh[1] to autoload on startup
  16. jcli completion --type zsh > "${fpath[1]}/_jcli"

Options

  1. -h, --help help for completion
  2. --type string Generate different types of shell which are [zsh bash powerShell] (default "bash")

Options inherited from parent commands

  1. --config-load If load a default config file (default true)
  2. --configFile string 指定另外一个配置文件
  3. --debug Print the output into debug.html
  4. --doctor Run the diagnose for current command
  5. --insecureSkipVerify If skip insecure skip verify (default true)
  6. -j, --jenkins string 选择本次执行的 Jenkins
  7. --logger-level string Logger level which could be: debug, info, warn, error (default "warn")
  8. --proxy string The proxy of connection to Jenkins
  9. --proxy-auth string The auth of proxy of connection to Jenkins
  10. --proxy-disable Disable proxy setting
  11. --token string The token of Jenkins
  12. --url string The URL of Jenkins
  13. --username string The username of Jenkins

SEE ALSO

  • jcli - Jenkins CLI written by golang which could help you with your multiple Jenkins