yugabyte/yugabyte-db

[usability] Allow prefix matching for yb-admin commands

Open

#9624 aperta il 6 ago 2021

Vedi su GitHub
 (4 commenti) (0 reazioni) (1 assegnatario)C (1003 fork)batch import
area/docdbgood first issuehelp wantedkind/enhancementpriority/medium

Metriche repository

Star
 (8229 star)
Metriche merge PR
 (Merge medio 17g 21h) (92 PR mergiate in 30 g)

Descrizione

Jira Link: DB-2024 Currently when yb-admin command is slightly misspelled, e.g. list_snapshot_schedule instead of list_snapshot_schedules, the user would be given the whole list of commands.

User experience can be improved by using the (partial) command as prefix.

If there is only one match, that match would be picked - we can ask the user to confirm the selection (or add option, say -accept-prefix-match which would accept the selection without asking). In case there are multiple candidates for the given prefix, the list of commands would be printed.

Guida contributor