Skip to content

Commit

Permalink
Take into account the DISABLE_INTERACTIVE variable
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Aug 29, 2019
1 parent acaa3ec commit 6fb8077
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/integration_link.go
Expand Up @@ -328,6 +328,9 @@ var (

func interactiveCreate() (scalingo.SCMRepoLinkParams, error) {
var params scalingo.SCMRepoLinkParams
if config.C.DisableInteractive {
return params, errors.New("need at least one integration link parameter")
}
qs := []*survey.Question{
{
Name: "branch",
Expand Down

0 comments on commit 6fb8077

Please sign in to comment.