Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce841f9

Browse files
committed
fixup example
1 parentda0107c commitce841f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎cli/organizationroles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (r *RootCmd) editOrganizationRole() *serpent.Command {
124124
Long:FormatExamples(
125125
Example{
126126
Description:"Run with an input.json file",
127-
Command:"coder roles editcustom_name < role.json",
127+
Command:"coder roles edit--stdin < role.json",
128128
},
129129
),
130130
Options: []serpent.Option{

‎enterprise/cli/organization_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import (
1818
funcTestEditOrganizationRoles(t*testing.T) {
1919
t.Parallel()
2020

21+
// Unit test uses --stdin and json as the role input. The interactive cli would
22+
// be hard to drive from a unit test.
2123
t.Run("JSON",func(t*testing.T) {
2224
t.Parallel()
2325

@@ -36,7 +38,6 @@ func TestEditOrganizationRoles(t *testing.T) {
3638

3739
ctx:=testutil.Context(t,testutil.WaitMedium)
3840
inv,root:=clitest.New(t,"organization","roles","edit","--stdin")
39-
// Use json input, as interactive mode would be challenging to control
4041
inv.Stdin=bytes.NewBufferString(fmt.Sprintf(`{
4142
"name": "new-role",
4243
"organization_id": "%s",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp