We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9250808 commit f7c5e0eCopy full SHA for f7c5e0e
pkg/stack/options.go
@@ -51,7 +51,9 @@ func ConfigFromOptions() (*Config, error) {
51
sName := stack // Default to the supplied stack
52
if sName == "" {
53
stacks, err := GetStacks()
54
- cobra.CheckErr(err)
+ if err != nil {
55
+ return nil, err
56
+ }
57
58
if len(stacks) == 1 {
59
// If there is only one stack use that
@@ -62,7 +64,10 @@ func ConfigFromOptions() (*Config, error) {
62
64
Message: "Which stack do you wish to deploy?",
63
65
Options: stacks,
66
}, &sName)
67
+
68
69
70
71
}
72
73
0 commit comments