From 76256015127583926bcbfa3fcf49cd051975033c Mon Sep 17 00:00:00 2001 From: Curtis Myzie Date: Tue, 17 Sep 2019 12:12:06 -0400 Subject: [PATCH] Mark name as a required flag for create azure env --- cmd/createAzureEnvironment.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/createAzureEnvironment.go b/cmd/createAzureEnvironment.go index b0ce691..01db782 100644 --- a/cmd/createAzureEnvironment.go +++ b/cmd/createAzureEnvironment.go @@ -99,6 +99,7 @@ func NewCreateAzureEnvironmentCommand() *cobra.Command { cmd.Flags().StringSliceVar(&opts.RemediateResourceGroups, "remediation-resource-groups", []string{}, "Remediation resource groups") cmd.Flags().StringSliceVar(&opts.SurveyResourceGroups, "survey-resource-groups", nil, "Survey resource groups") + cmd.MarkFlagRequired("name") cmd.MarkFlagRequired("app") cmd.MarkFlagRequired("secret") cmd.MarkFlagRequired("sub")