Skip to content

Commit

Permalink
feat: make orb visibility a prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleTryon committed May 15, 2023
1 parent 4d9dbe5 commit 766a863
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cmd/orb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,23 @@ func initOrb(opts orbOptions) error {
orbPath := opts.args[0]
var err error

if !opts.private {
prompt := &survey.Select{
Message: "Would you like to create a public or private orb?",
Options: []string{"Public", "Private"},
}
var selectedOption string
err := survey.AskOne(prompt, &selectedOption)
if err != nil {
return errors.Wrap(err, "Unexpected error")
}

if selectedOption == "Private" {
opts.private = true
}
}


fullyAutomated := 0
prompt := &survey.Select{
Message: "Would you like to perform an automated setup of this orb?",
Expand Down

0 comments on commit 766a863

Please sign in to comment.