MogDB
Ecological Tools

mtk gen completion

Generate shell autocompletion script for mtk

Synopsis

Generates a shell autocompletion script for mtk.

NOTE: The current version supports Bash only. This should work for *nix systems with Bash installed.

By default, the file is written directly to /etc/bash_completion.d for convenience, and the command may need superuser rights, e.g.:

$ mtk gen complete

Add --completionfile=/path/to/file flag to set alternative file-path and name.

Logout and in again to reload the completion scripts, or just source them in directly:

$ . /etc/bash_completion
mtk gen completion [flags]

Options

  -f, --completion-file string    autocompletion file (default "/etc/bash_completion.d/mtk.bash")
  -b, --completion-shell string   autocompletion shell (default "bash")
  -h, --help                      help for completion

Options inherited from parent commands

  -c, --config string    Set mtk config file. Support json,yaml. [env MTK_CONFIG] (default "mtk.json")
  -d, --debug            Set the debug mode.
                         Not necessary for the normal usage. [env MTK_DEBUG]
      --preRun           preRun check.
      --schemas string   the Migrate schema,Separated by commas.(schema1,schema2,db1)
      --tables string    the Migrate tables,Separated by commas.(tab1,schema1.tab1)

SEE ALSO

  • mtk gen - gen command docs, shell autocompletion script