From 9fb6b8d444c9fa61b5be5cf941d7b8ce6596ae0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Mon, 23 Nov 2020 11:29:52 +0000 Subject: [PATCH] enh: accountCreate: handle --uid-auto in autocompletion rules --- bin/plugin/restricted/accountCreate.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/plugin/restricted/accountCreate.json b/bin/plugin/restricted/accountCreate.json index 7e6d69c..fb4c5af 100644 --- a/bin/plugin/restricted/accountCreate.json +++ b/bin/plugin/restricted/accountCreate.json @@ -1,13 +1,13 @@ { "interactive": [ - "accountCreate" , {"ac" : ["--account"]}, - "accountCreate --account" , {"pr" : [""]}, - "accountCreate --account \\S+" , {"ac" : ["--uid"]}, - "accountCreate --account \\S+ --uid" , {"pr" : [""]}, - "accountCreate --account \\S+ --uid \\S+" , {"ac" : ["", "--always-active", "--comment"]}, - "accountCreate --account \\S+ --uid \\S+ --always-active" , {"ac" : ["", "--comment"]}, - "accountCreate --account \\S+ --uid \\S+ .*--comment" , {"pr" : [""]}, - "accountCreate --account \\S+ --uid \\S+ (--always-active --comment \\S+|--comment \\S+ --always-active)" , {"pr" : [""]} + "accountCreate" , {"ac" : ["--account"]}, + "accountCreate --account" , {"pr" : [""]}, + "accountCreate --account \\S+" , {"ac" : ["--uid","--uid-auto"]}, + "accountCreate --account \\S+ --uid" , {"pr" : [""]}, + "accountCreate --account \\S+ --uid( \\S+|-auto)" , {"ac" : ["", "--always-active", "--comment"]}, + "accountCreate --account \\S+ --uid( \\S+|-auto) --always-active" , {"ac" : ["", "--comment"]}, + "accountCreate --account \\S+ --uid( \\S+|-auto) .*--comment" , {"pr" : [""]}, + "accountCreate --account \\S+ --uid( \\S+|-auto) (--always-active --comment \\S+|--comment \\S+ --always-active)" , {"pr" : [""]} ], "master_only": true, "terminal_mode": "raw"