Skip to main content
Skip table of contents

Auto-completion support

To enhance your experience with dct-toolkit, an auto-completion feature is implemented to streamline command entry. This functionality facilitates the auto-completion of commands and options with a simple press of the Tab key.

To enable this feature, first generate the auto-completion script by executing the following command:

CODE
dct-toolkit generate_completion >> dct_toolkit_auto_completion_script

For immediate use in your current shell session, activate the script with the following command:

CODE
source dct_toolkit_auto_completion_script

Alternatively, for a swift activation within the same session, the following command can be utilized:

CODE
source <(dct-toolkit generate_completion)

Please note that these methods only apply the auto-completion feature for the duration of the current shell session. For a more permanent solution that ensures auto-completion is available in all future sessions, you must append a command to your shell's configuration file (~/.bashrc for Bash or ~/.zshrc for Zsh). Use one of the following commands for Bash or Zsh, respectively.:

  • For Bash:

    CODE
    echo "source <(dct-toolkit generate_completion)" >> ~/.bashrc
  • For Zsh:

    CODE
    echo "source <(dct-toolkit generate_completion)" >> ~/.zshrc

Please be aware that the dct-toolkit auto-completion feature is currently supported only on Bash-type shells.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.