Shell Completion¶
hckr provides tab completion support for Bash (version 4.4 and up), Zsh.
After
Hint
commands can be auto completed using double tab, for options insert ‘-’ and then use tab.
$ hckr <TAB><TAB>
cron -- cron commands
crypto -- crypto commands
data -- data related commands
hash -- hash commands
info -- info commands
k8s -- Kubernetes commands
repl -- Start an interactive shell.
$ hckr hash md5 -<TAB><TAB>
--chunk-size -c -- Size of chunks for file hash
--file -f -- File to be hashed
--help -h -- Show this message and exit.
--string -s -- String to be hashed
Shell completion for Bash¶
If you are using bash, please run this in your terminal, this will enable shell completion
echo 'eval "$(_HCKR_COMPLETE=bash_source hckr)"' >> ~/.bashrc
Shell completion for Zshrc¶
If you are using zsh, please run this in your terminal, this will enable shell completion
echo 'eval "$(_HCKR_COMPLETE=zsh_source hckr)"' >> ~/.zshrc
Tip
hckr uses click’s native shell completion functionality. refer following docs for more information docs.