You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 16, 2023. It is now read-only.
fmt.Fprint(cmd.io.Stdout(), "Created your account.\n\n")
184
190
191
+
createWorkspace:=cmd.org!=""
192
+
if!createWorkspace {
193
+
createWorkspace, err=ui.AskYesNo(cmd.io, "Do you want to create a shared workspace for your team?", ui.DefaultYes)
194
+
iferr!=nil {
195
+
returnerr
196
+
}
197
+
fmt.Fprintln(cmd.io.Stdout())
198
+
if!createWorkspace {
199
+
fmt.Fprint(cmd.io.Stdout(), "You can create a shared workspace later using `secrethub org init`.\n\n")
200
+
}
201
+
}
202
+
ifcreateWorkspace {
203
+
ifcmd.org=="" {
204
+
cmd.org, err=ui.AskAndValidate(cmd.io, "Workspace name (e.g. your company name): ", 2, api.ValidateOrgName)
205
+
iferr!=nil {
206
+
returnerr
207
+
}
208
+
}
209
+
ifcmd.orgDescription=="" {
210
+
cmd.orgDescription, err=ui.AskAndValidate(cmd.io, "A description (max 144 chars) for your team workspace so others will recognize it:\n", 2, api.ValidateOrgDescription)
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)
219
+
} elseiferr!=nil {
220
+
returnerr
221
+
} else {
222
+
fmt.Fprintln(cmd.io.Stdout(), "\nCreated your shared workspace.")
223
+
}
224
+
}
185
225
fmt.Fprintf(cmd.io.Stdout(), "Setup complete. To read your first secret, run:\n\n secrethub read %s\n\n", secretPath)
0 commit comments