enh: accountCreate: handle --uid-auto in autocompletion rules

This commit is contained in:
Stéphane Lesimple 2020-11-23 11:29:52 +00:00
parent 6a81e55bf2
commit 9fb6b8d444
No known key found for this signature in database
GPG key ID: 4B4A3289E9D35658

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"