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:
+5
-4
@@ -15,7 +15,8 @@ coder organizations roles
|
||||
|
||||
## Subcommands
|
||||
|
||||
| Name | Purpose |
|
||||
|----------------------------------------------------|----------------------------------|
|
||||
| [<code>show</code>](./organizations_roles_show.md) | Show role(s) |
|
||||
| [<code>edit</code>](./organizations_roles_edit.md) | Edit an organization custom role |
|
||||
| Name | Purpose |
|
||||
|--------------------------------------------------------|---------------------------------------|
|
||||
| [<code>show</code>](./organizations_roles_show.md) | Show role(s) |
|
||||
| [<code>update</code>](./organizations_roles_update.md) | Update an organization custom role |
|
||||
| [<code>create</code>](./organizations_roles_create.md) | Create a new organization custom role |
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# organizations roles create
|
||||
|
||||
Create a new organization custom role
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder organizations roles create [flags] <role_name>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
```console
|
||||
- Run with an input.json file:
|
||||
|
||||
$ coder organization -O <organization_name> roles create --stidin < role.json
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### -y, --yes
|
||||
|
||||
| | |
|
||||
|------|-------------------|
|
||||
| Type | <code>bool</code> |
|
||||
|
||||
Bypass prompts.
|
||||
|
||||
### --dry-run
|
||||
|
||||
| | |
|
||||
|------|-------------------|
|
||||
| Type | <code>bool</code> |
|
||||
|
||||
Does all the work, but does not submit the final updated role.
|
||||
|
||||
### --stdin
|
||||
|
||||
| | |
|
||||
|------|-------------------|
|
||||
| Type | <code>bool</code> |
|
||||
|
||||
Reads stdin for the json role definition to upload.
|
||||
Generated
+4
-4
@@ -1,12 +1,12 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# organizations roles edit
|
||||
# organizations roles update
|
||||
|
||||
Edit an organization custom role
|
||||
Update an organization custom role
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder organizations roles edit [flags] <role_name>
|
||||
coder organizations roles update [flags] <role_name>
|
||||
```
|
||||
|
||||
## Description
|
||||
@@ -14,7 +14,7 @@ coder organizations roles edit [flags] <role_name>
|
||||
```console
|
||||
- Run with an input.json file:
|
||||
|
||||
$ coder roles edit --stdin < role.json
|
||||
$ coder roles update --stdin < role.json
|
||||
```
|
||||
|
||||
## Options
|
||||
Reference in New Issue
Block a user