Exit with non-zero code when trying to do interactive onboarding and --batch is set

This commit is contained in:
Arturo Filastò 2018-09-17 16:16:56 +02:00
commit d55cccc236
4 changed files with 14 additions and 1 deletions

View file

@ -48,6 +48,9 @@ func init() {
if err != nil {
return nil, err
}
if *isBatch {
ctx.IsBatch = true
}
return ctx, nil
}