mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: split cli roles edit command into create and update commands (#17121)
Closes #14239
This commit is contained in:
+3
-2
@@ -8,8 +8,9 @@ USAGE:
|
||||
Aliases: role
|
||||
|
||||
SUBCOMMANDS:
|
||||
edit Edit an organization custom role
|
||||
show Show role(s)
|
||||
create Create a new organization custom role
|
||||
show Show role(s)
|
||||
update Update an organization custom role
|
||||
|
||||
———
|
||||
Run `coder --help` for a list of global options.
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
coder v0.0.0-devel
|
||||
|
||||
USAGE:
|
||||
coder organizations roles create [flags] <role_name>
|
||||
|
||||
Create a new organization custom role
|
||||
|
||||
- Run with an input.json file:
|
||||
|
||||
$ coder organization -O <organization_name> roles create --stidin <
|
||||
role.json
|
||||
|
||||
OPTIONS:
|
||||
--dry-run bool
|
||||
Does all the work, but does not submit the final updated role.
|
||||
|
||||
--stdin bool
|
||||
Reads stdin for the json role definition to upload.
|
||||
|
||||
-y, --yes bool
|
||||
Bypass prompts.
|
||||
|
||||
———
|
||||
Run `coder --help` for a list of global options.
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
coder v0.0.0-devel
|
||||
|
||||
USAGE:
|
||||
coder organizations roles edit [flags] <role_name>
|
||||
coder organizations roles update [flags] <role_name>
|
||||
|
||||
Edit an organization custom role
|
||||
Update an organization custom role
|
||||
|
||||
- Run with an input.json file:
|
||||
|
||||
$ coder roles edit --stdin < role.json
|
||||
$ coder roles update --stdin < role.json
|
||||
|
||||
OPTIONS:
|
||||
-c, --column [name|display name|organization id|site permissions|organization permissions|user permissions] (default: name,display name,site permissions,organization permissions,user permissions)
|
||||
Reference in New Issue
Block a user