yugabyte/yugabyte-db

[usability] Allow prefix matching for yb-admin commands

Open

#9,624 建立於 2021年8月6日

在 GitHub 查看
 (4 留言) (0 反應) (1 負責人)C (1,003 fork)batch import
area/docdbgood first issuehelp wantedkind/enhancementpriority/medium

倉庫指標

Star
 (8,229 star)
PR 合併指標
 (平均合併 17天 21小時) (30 天內合併 92 個 PR)

描述

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.

貢獻者指南