sq: bash tab completion is confused when tab-completing at `sq key`
Consider the following bash tab completions:
-
sq <TAB>yields a list of all subcommands and options (includingkeyandkeyring) -
sq k<TAB>automatically fills insq keyand leaves the cursor at the end ofkey -
sq key<TAB><TAB>shows nothing, if there are no local files whose names start withkey. If one local file namedkeyfooexists, it expands tosq keyfooafter the first<TAB>, and if two local files nameskeyfooandkeybarexist, it lists them both. -
sq key <TAB><TAB>(note the space afterkey) shows the sub-sub-commandsadopt,attest-certifications,generate,help, etc.
The third item in the list above is clearly wrong. It should instead show the two options key and keyring.