Merge pull request #69 from ovh/autocompletion

enh: accountCreate: handle --uid-auto in autocompletion rules
This commit is contained in:
Stéphane Lesimple 2020-11-23 14:41:48 +01:00 committed by GitHub
commit 5e78c08d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"