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

Commite85c92e

Browse files
authored
chore: remove the double confirmation when creating an organization via the CLI (#16972)
Closes[coder/internal#476](coder/internal#476)
1 parent8ca52a8 commite85c92e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

‎cli/organizationmanage.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
"github.com/coder/coder/v2/cli/cliui"
1010
"github.com/coder/coder/v2/codersdk"
11-
"github.com/coder/pretty"
1211
"github.com/coder/serpent"
1312
)
1413

@@ -41,18 +40,6 @@ func (r *RootCmd) createOrganization() *serpent.Command {
4140
returnxerrors.Errorf("organization %q already exists",orgName)
4241
}
4342

44-
_,err=cliui.Prompt(inv, cliui.PromptOptions{
45-
Text:fmt.Sprintf("Are you sure you want to create an organization with the name %s?\n%s",
46-
pretty.Sprint(cliui.DefaultStyles.Code,orgName),
47-
pretty.Sprint(cliui.BoldFmt(),"This action is irreversible."),
48-
),
49-
IsConfirm:true,
50-
Default:cliui.ConfirmNo,
51-
})
52-
iferr!=nil {
53-
returnerr
54-
}
55-
5643
organization,err:=client.CreateOrganization(inv.Context(), codersdk.CreateOrganizationRequest{
5744
Name:orgName,
5845
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp