-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IH-676: Distinguish between required and optional parameters in autoc…
…ompletion If command has both optional and required parameters, shows a prefix before the parameter name specifying its status: ``` $ xe vmss-create <TAB><TAB> OPTIONAL: enabled= REQUIRED: frequency= OPTIONAL: name-description= REQUIRED: name-label= OPTIONAL: retained-snapshots= REQUIRED: type= OPTIONAL: schedule: $ xe vmss-create n<TAB><TAB> OPTIONAL: name-description= REQUIRED: name-label= ``` But: ``` $ xe observer-create <TAB><TAB> OPTIONAL: attributes= OPTIONAL: endpoints= REQUIRED: name-label= OPTIONAL: components= OPTIONAL: host-uuids= OPTIONAL: enabled= OPTIONAL: name-description= $ xe observer-create en<TAB><TAB> enabled= endpoints= ``` (If suggested parameters all come from one class, this status is not shown due to the limitation in the architecture of the autocompletion - this prefix would be common to all commands and would be inserted into the user's command line) Signed-off-by: Andrii Sultanov <[email protected]>
- Loading branch information
1 parent
6334cbd
commit 8704c79
Showing
1 changed file
with
108 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters