Skip to content

Commit

Permalink
feat: short options for RBAC CLI. (#5169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioga authored Oct 4, 2022
1 parent 08e270a commit ec90ab1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion harness/determined/cli/rbac.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,19 @@ def role_name_to_role_id(session: session.Session, role_name: str) -> int:
[
Arg("role_name", help="name of role to assign"),
Arg(
"-w",
"--workspace-name",
default=None,
help="name of the workspace the role is assigned to",
),
Arg(
"--username-to-assign", default=None, help="username to assign the role to"
"-u",
"--username-to-assign",
default=None,
help="username to assign the role to",
),
Arg(
"-g",
"--group-name-to-assign",
default=None,
help="name of the group the role is assigned to",
Expand All @@ -407,16 +412,19 @@ def role_name_to_role_id(session: session.Session, role_name: str) -> int:
[
Arg("role_name", help="name of role to unassign"),
Arg(
"-w",
"--workspace-name",
default=None,
help="name of the workspace the role is unassigned from",
),
Arg(
"-u",
"--username-to-assign",
default=None,
help="username the role is unassigned from",
),
Arg(
"-g",
"--group-name-to-assign",
default=None,
help="name of the group the role is unassigned from",
Expand Down

0 comments on commit ec90ab1

Please sign in to comment.