jx completion

jx completion

Output shell completion code for the given shell (bash or zsh)

Synopsis

Output shell completion code for the given shell (bash or zsh).

This command prints shell code which must be evaluation to provide interactive completion of jx commands.

$ source <(jx completion bash)

will load the jx completion code for bash. Note that this depends on the bash-completion framework. It must be sourced before sourcing the jx completion, e.g. on the Mac:

$ brew install bash-completion $ source $(brew –prefix)/etc/bash_completion $ source <(jx completion bash)

On a Mac it often works better to generate a file with the completion and source that:

$ jx completion bash > ~/.jx/bash $ source ~/.jx/bash

If you use zsh [1], the following will load jx zsh completion:

$ source <(jx completion zsh)

[1] zsh completions are only supported in versions of zsh >= 5.2

jx completion SHELL [flags]

Options

  -h, --help   help for completion

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input (default true)
      --verbose      Enables verbose output

SEE ALSO

  • jx - jx is a command line tool for working with Jenkins X
Auto generated by spf13/cobra on 14-Dec-2019

Last modified December 14, 2019: release 0.0.1346 (dcfae35)