Skip to content

Commit e85c92e

Browse files
authored
chore: remove the double confirmation when creating an organization via the CLI (coder#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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy