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

Commit f726593

Browse files
committed
Do not list setup code option
There is no reason why a user would have to get there when he is not copying a command with a --setup-code flag.
1 parent 465b8da commit f726593

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

internals/secrethub/init.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ func (cmd *InitCommand) Run() error {
9696
option, err := ui.Choose(cmd.io, "How do you want to initialize your SecretHub account on this device?",
9797
[]string{
9898
"Signup for a new account",
99-
"Use a setup code to set up an account created on the SecretHub website",
10099
"Use a backup code to recover an existing account",
101100
}, 3)
102101
if err != nil {
@@ -107,8 +106,6 @@ func (cmd *InitCommand) Run() error {
107106
case 0:
108107
mode = InitModeSignup
109108
case 1:
110-
mode = InitModeSetupCode
111-
case 2:
112109
mode = InitModeBackupCode
113110
}
114111
}
@@ -125,10 +122,6 @@ func (cmd *InitCommand) Run() error {
125122
return signupCommand.Run()
126123
case InitModeSetupCode:
127124
setupCode := cmd.setupCode
128-
if setupCode == "" {
129-
fmt.Fprintln(cmd.io.Output(), "If you have signed up on https://signup.secrethub.io, just copy the provided `secrethub init` command to get your CLI set up.")
130-
return nil
131-
}
132125

133126
fmt.Fprintf(cmd.io.Output(), credentialCreationMessage, credentialPath)
134127

0 commit comments

Comments
 (0)