RocketMq Completion is a tool, support bash tab completion for Apache RocketMq bash command
Use complete technology to reduce the cost of command-line interaction and the probability of error
- Make sure that the
.bash_completion
file and.bash_completion.d
directory exist in this user's home directory - Add the following to the .bash_completion file
for bcfile in ~/.bash_completion.d/* ; do
. $bcfile
done
- Download
mqadmin_completion
file from the releases to.bash_completion.d
- Log in to the current user or execute
source mqadmin_completion
- Check that the script is valid
complete -p | grep -e mqadmin
The following appears in the output as successful
complete -F _mqadmin mqadmin
- Download
mqadmin_completion
file from the releases to local directory - Add the following command to
~/.bash_profile
source /path/mqadmin_completion
- Log in to the current user or execute
source ~/.bash_profile
- Check that the script is valid
complete -p | grep -e mqadmin
The following appears in the output as successful
complete -F _mqadmin mqadmin
./mqadmin [tab]
./mqadmin <command> [-tab][--tab]
- Indicates a required parameter -- Indicates optional parameters
- Currently only suport mqadmin script , if the increase in the new command support, use the same way
- For individual script updates, download the new script and overwrite the old version
Just a coder
Apache License, Version 2.0 Copyright (C) 2015-2017 Jerry