Skip to content

jerrysearch/rocketmq-completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Rocketmq Completion

GitHub release License

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

install

[Recommend] Standard installation method

  • 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

Universal installation method

  • 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

Usage

./mqadmin [tab]
./mqadmin <command> [-tab][--tab]

- Indicates a required parameter -- Indicates optional parameters

About upgrading

  • 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

About the author

Just a coder

License

Apache License, Version 2.0 Copyright (C) 2015-2017 Jerry

About

RocketMq Completion is a tool, support bash tab completion for Apache RocketMq bash command

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published