in cmd/armCmd.go [53:89]
func NewARMCommand() *cobra.Command {
armCmd := &cobra.Command{
Use: "arm",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: getMPFARM,
}
armCmd.Flags().StringVarP(&flgResourceGroupNamePfx, "resourceGroupNamePfx", "", "testdeployrg", "Resource Group Name Prefix")
armCmd.Flags().StringVarP(&flgDeploymentNamePfx, "deploymentNamePfx", "", "testDeploy", "Deployment Name Prefix")
armCmd.Flags().StringVarP(&flgTemplateFilePath, "templateFilePath", "", "", "Path to ARM Template File")
err := armCmd.MarkFlagRequired("templateFilePath")
if err != nil {
log.Errorf("Error marking flag required for ARM template file path: %v\n", err)
}
armCmd.Flags().StringVarP(&flgParametersFilePath, "parametersFilePath", "", "", "Path to Template Parameters File")
err = armCmd.MarkFlagRequired("parametersFilePath")
if err != nil {
log.Errorf("Error marking flag required for ARM template parameters file path: %v\n", err)
}
armCmd.Flags().StringVarP(&flgLocation, "location", "", "eastus2", "Location")
armCmd.Flags().BoolVarP(&flgSubscriptionScoped, "subscriptionScoped", "", false, "Is Deployment Subscription Scoped")
// armCmd.Flags().BoolVarP(&flgFullDeployment, "fullDeployment", "", false, "Full Deployment")
return armCmd
}