buildtest
buildtest copied to clipboard
[Bug]: issue with tab completion
Bug Description
There is an issue with tab completion with some sub-commands especially when one uses top-level options like buildtest <option> <subcommand>
then the bash completion doesn't work properly
Not working, bash completion showing top-level argument instead of options of bd
(buildtest) ~/Documents/github/buildtest/ [fix_ci_issue_1257] buildtest -d bd
bc build cd cg config debugreport h history info it report schema stats stylecheck unittests
bd buildspec cdash clean debug docs help hy inspect path rt schemadocs style test
This is working
(buildtest) ~/Documents/github/buildtest/ [fix_ci_issue_1257] buildtest bd
--buildspec --executor-type --module-purge --procs --stage -b -m -x
--disable-executor-check --filter --modules --remove-stagedir --tags -e -s
--exclude --helpfilter --nodes --rerun --timeout -et -t
--executor --maxpendtime --pollinterval --retry --unload-modules -f -u
Tab completion not working for buildtest cg executors
, it is showing options for buildtest cg
instead of the options for subcommand
(buildtest) ~/Documents/github/buildtest/ [fix_ci_issue_1257] buildtest cg executors
--help -h co compilers e edit ex executors p path systems v validate view
The tab completion for buildtest cg co
is working however for subcommands like test
it doesn't work after tab completion. Note that buildtest tab completion worked for buildtest cg co test
which shows builtin_gcc however positional argument after the argument now shows the tab completion for parent command buildtest cg co
(buildtest) ~/Documents/github/buildtest/ [fix_ci_issue_1257] buildtest cg co find
--help -h co compilers e edit ex executors p path systems v validate view
(buildtest) ~/Documents/github/buildtest/ [fix_ci_issue_1257] buildtest cg co test builtin_gcc
--help -h co compilers e edit ex executors p path systems v validate view
(buildtest) ~/Documents/github/buildtest/ [fix_ci_issue_1257] buildtest cg co
builtin_gcc
Tab completion for subcommands inside buildtest rt
such as buildtest rt c
, buildtest rt list
or buildtest rt sm
are not working it is showing tab completion for buildtest rt
command such as one below
(buildtest) ~/Documents/github/buildtest/ [fix_ci_issue_1257] buildtest rt c
--color --filter --formatfields --helpformat --oldest --row-count -e -n -t l summary
--end --filterfields --help --latest --pager --start -f -p c list
--fail --format --helpfilter --no-header --pass --terse -h -s clear sm
Version
devel
Relevant log output
No response
Post question in Slack
- [X] I agree that I posted my question in slack before creating this issue
Is there an existing issue
- [X] I confirm there is no existing issue for this issue