Fix subcommand selection..

..by sorting the list of subcommand function names in descending order
of how many '_' are in them. This means that `abra app <app> version`
will always be matched before `abra version`.

Ref #108
This commit is contained in:
3wc
2021-03-20 18:58:16 +02:00
parent 7557966c98
commit 35d5df14aa
2 changed files with 111 additions and 97 deletions

View File

@ -1,5 +1,7 @@
# abra x.x.x (UNRELEASED)
- Search for subcommands in descending order of how many components there are ([#108](https://git.autonomic.zone/coop-cloud/abra/issues/108))
# abra 0.6.0 (2021-03-17)
- Show version and digest of app if labelled ([98e674b8e8](https://git.autonomic.zone/coop-cloud/abra/commit/98e674b8e83458a83dcbf331e8e34c7188559c4a))