mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-04 06:27:11 +08:00
enh: accountCreate: handle --uid-auto in autocompletion rules
This commit is contained in:
parent
6a81e55bf2
commit
9fb6b8d444
1 changed files with 8 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"interactive": [
|
||||
"accountCreate" , {"ac" : ["--account"]},
|
||||
"accountCreate --account" , {"pr" : ["<ACCOUNT>"]},
|
||||
"accountCreate --account \\S+" , {"ac" : ["--uid"]},
|
||||
"accountCreate --account \\S+ --uid" , {"pr" : ["<UID>"]},
|
||||
"accountCreate --account \\S+ --uid \\S+" , {"ac" : ["<enter>", "--always-active", "--comment"]},
|
||||
"accountCreate --account \\S+ --uid \\S+ --always-active" , {"ac" : ["<enter>", "--comment"]},
|
||||
"accountCreate --account \\S+ --uid \\S+ .*--comment" , {"pr" : ["<COMMENT_WITHOUT_SPACES>"]},
|
||||
"accountCreate --account \\S+ --uid \\S+ (--always-active --comment \\S+|--comment \\S+ --always-active)" , {"pr" : ["<enter>"]}
|
||||
"accountCreate" , {"ac" : ["--account"]},
|
||||
"accountCreate --account" , {"pr" : ["<ACCOUNT>"]},
|
||||
"accountCreate --account \\S+" , {"ac" : ["--uid","--uid-auto"]},
|
||||
"accountCreate --account \\S+ --uid" , {"pr" : ["<UID>"]},
|
||||
"accountCreate --account \\S+ --uid( \\S+|-auto)" , {"ac" : ["<enter>", "--always-active", "--comment"]},
|
||||
"accountCreate --account \\S+ --uid( \\S+|-auto) --always-active" , {"ac" : ["<enter>", "--comment"]},
|
||||
"accountCreate --account \\S+ --uid( \\S+|-auto) .*--comment" , {"pr" : ["<COMMENT_WITHOUT_SPACES>"]},
|
||||
"accountCreate --account \\S+ --uid( \\S+|-auto) (--always-active --comment \\S+|--comment \\S+ --always-active)" , {"pr" : ["<enter>"]}
|
||||
],
|
||||
"master_only": true,
|
||||
"terminal_mode": "raw"
|
||||
|
|
Loading…
Reference in a new issue