Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 64f9d07

Browse files
committed
Print feedback before creating an organization on signup
Without this, it was not clear that the command was busy and it might look like the prompt did not accept the ENTER pressed.
1 parent 6260bd5 commit 64f9d07

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internals/secrethub/signup.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,11 @@ func (cmd *SignUpCommand) Run() error {
212212
return err
213213
}
214214
}
215+
fmt.Fprintln(cmd.io.Stdout(), "Creating your shared workspace...")
216+
cmd.progressPrinter.Start()
215217

216218
_, err := client.Orgs().Create(cmd.org, cmd.orgDescription)
219+
cmd.progressPrinter.Stop()
217220
if err == api.ErrOrgAlreadyExists {
218221
fmt.Fprintf(cmd.io.Stdout(), "The workspace %s already exists. If it is your organization, ask a colleague to invite you to the workspace. You can also create a new one using `secrethub org init`.\n", cmd.org)
219222
} else if err != nil {

0 commit comments

Comments
 (0)