Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e85c92e

Browse files
authored
chore: remove the double confirmation when creating an organization via the CLI (#16972)
Closes [coder/internal#476](coder/internal#476)
1 parent 8ca52a8 commit e85c92e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cli/organizationmanage.go

-13
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
return xerrors.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-
if err != nil {
53-
return err
54-
}
55-
5643
organization, err := client.CreateOrganization(inv.Context(), codersdk.CreateOrganizationRequest{
5744
Name: orgName,
5845
})

0 commit comments

Comments
 (0)