Skip to content

Commit

Permalink
enh: add a few autocompletes
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Mar 20, 2024
1 parent 0314798 commit 54321ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions bin/plugin/group-owner/groupModify.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"interactive": [
"groupModify" , {"ac" : ["--group"]},
"groupModify +--group" , {"ac" : ["<GROUP>"]},
"groupModify +--group +\\S+" , {"ac" : ["--mfa-required","--guest-ttl-limit"]},
"groupModify +--group +\\S+ +--mfa-required" , {"ac" : ["password","totp","any","none"]},
"groupModify +--group +\\S+ +--mfa-required +\\S+" , {"pr" : ["<ENTER>"]},
"groupModify +--group +\\S+ +--guest-ttl-limit" , {"pr" : ["<DURATION>"]},
"groupModify +--group +\\S+ +--guest-ttl-limit +\\S+", {"pr" : ["<ENTER>"]}
"groupModify" , {"ac" : ["--group"]},
"groupModify +--group" , {"ac" : ["<GROUP>"]},
"groupModify +--group +.+--mfa-required" , {"ac" : ["password","totp","any","none"]},
"groupModify +--group +.+--guest-ttl-limit" , {"pr" : ["<DURATION>"]},
"groupModify +--group +.+--idle-lock-timeout" , {"pr" : ["<DURATION>","0 (disable)","-1 (use bastion default)"]},
"groupModify +--group +.+--idle-kill-timeout" , {"pr" : ["<DURATION>","0 (disable)","-1 (use bastion default)"]},
"groupModify +--group +.+" , {"ac" : ["--mfa-required","--guest-ttl-limit","--idle-lock-timeout","--idle-kill-timeout","<ENTER>"]}
],
"master_only": 1
}
4 changes: 2 additions & 2 deletions bin/plugin/restricted/accountModify.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"interactive": [
"accountModify" , {"ac": ["--account"]},
"accountModify +--account" , {"ac": ["<ACCOUNT>"]},
"accountModify +--account +\\S+" , {"ac": ["--mfa-password-required","--mfa-totp-required","--pam-auth-bypass","--always-active","--egress-strict-host-key-checking","--personal-egress-mfa-required","--idle-ignore","--pubkey-auth-optional"]},
"accountModify +--account +\\S+ +.*(--mfa-password-required|--mfa-totp-required)" , {"ac": ["yes","no","bypass"]},
"accountModify +--account +\\S+ +.*(--pam-auth-bypass|--mfa-auth-bypass|--always-active|idle-ignore|--pubkey-auth-optional)", {"ac": ["yes","no"]},
"accountModify +--account +\\S+ +.*(--egress-strict-host-key-checking)" , {"ac": ["yes","accept-new","no","ask","default","bypass"]},
"accountModify +--account +\\S+ +.*(--personal-egress-mfa-required)" , {"ac": ["password","totp","any","none"]},
"accountModify +--account +\\S+ +.*(yes|accept-new|no|bypass|ask|default|totp|password|none)" , {"ac": ["--mfa-password-required","--mfa-totp-required","--pam-auth-bypass","--always-active","--egress-strict-host-key-checking","--personal-egress-mfa-required","--idle-ignore","--pubkey-auth-optional","<enter>"]}
"accountModify +--account +\\S+ +.*(--max-inactive-days)" , {"pr": ["<NUMBER_OF_DAYS>"]},
"accountModify +--account +\\S+ +.*" , {"ac": ["<ENTER>","--mfa-password-required","--mfa-totp-required","--pam-auth-bypass","--always-active","--egress-strict-host-key-checking","--personal-egress-mfa-required","--idle-ignore","--pubkey-auth-optional","--max-inactive-days","--osh-only"]}
]
}

0 comments on commit 54321ff

Please sign in to comment.