Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove bash completion #215
Conversation
This commit adds the completion support for almost all current options. The options that required a number or not supported (ie. --chunk-size, --rate-limit-bps, --uid-shift and --uid-range).
|
I fixed a bug in the second commit for command completion if an option with an argument is entered before the command verb. For example |
This commit adds support for argument completion of every commands as defined in the man page.
Introduce helper function __casync_get_arg_n to return the n-th argument in $arg. The function takes into consideration the options whose the following argument should not be counted as argument, and the options that should be counted as argument. It replaces the helper function in_array to get the command from the already entered command line. This function is a modified version of the helper function _count_args from the bash-completion project.
This PR improves the support for bash completion of
casync.It supports for options and handles per-command completion.