From 766a863477847397fcd773d44f61e957696a147b Mon Sep 17 00:00:00 2001 From: KyleTryon Date: Mon, 15 May 2023 10:06:03 -0400 Subject: [PATCH] feat: make orb visibility a prompt --- cmd/orb.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cmd/orb.go b/cmd/orb.go index 5cc227c21..c5bab5415 100644 --- a/cmd/orb.go +++ b/cmd/orb.go @@ -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?",