You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Printf("Error: Invalid environment variable format (%s). Must be in the form 'key=value'\n", pair)
60
+
return
61
+
}
62
+
}
63
+
64
+
for_, pair:=rangecreateCmdFlags.Secrets {
65
+
parts:=strings.SplitN(pair, "=", 2)
66
+
iflen(parts) ==2 {
67
+
key:=parts[0]
68
+
value:=parts[1]
69
+
requestBody.Secrets[key] =value
70
+
} else {
71
+
fmt.Printf("Error: Invalid secret format (%s). Must be in the form 'key=value'\n", pair)
72
+
return
73
+
}
51
74
}
52
75
53
76
body, err:=json.Marshal(requestBody)
@@ -74,5 +97,7 @@ func init() {
74
97
}
75
98
76
99
createCmd.Flags().StringVarP(&createCmdFlags.app, "app", "a", "", "The app to create")
100
+
createCmd.Flags().StringSliceVarP(&createCmdFlags.EnvironmentVariables, "env", "e", []string{}, "Environment variables to set on the app in the form 'key=value'")
101
+
createCmd.Flags().StringSliceVarP(&createCmdFlags.Secrets, "secret", "s", []string{}, "Secrets to set on the app in the form 'key=value'")
0 commit comments