Skip to content

Commit

Permalink
Merge pull request #192 from appvia/cli_remove_question
Browse files Browse the repository at this point in the history
[CLI] - Removing Questions
  • Loading branch information
gambol99 committed Jun 30, 2022
2 parents a9b41a6 + 9aff801 commit 910b405
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pkg/cmd/tnctl/workflow/create.go
Expand Up @@ -248,27 +248,5 @@ func (o *ModuleCommand) askQuestions() error {
return err
}

var confirm string
err := survey.AskOne(&survey.Select{
Message: "Does your organization has a central policy repository?",
Help: "Name of the central repository which contains your organizations security policies",
Options: []string{"Yes", "No"},
Default: "No"}, &confirm,
)
if err != nil {
return err
}

switch confirm {
case "Yes":
err := survey.AskOne(&survey.Input{
Message: "What is the name of the repository?",
Help: "Is the of the repository in your organization containing the security policies",
}, &o.PolicySource)
if err != nil {
return err
}
}

return nil
}

0 comments on commit 910b405

Please sign in to comment.