in cmd/bicepCmd.go [49:90]
func NewBicepCommand() *cobra.Command {
bicepCmd := &cobra.Command{
Use: "bicep",
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: getMPFBicep,
}
bicepCmd.Flags().StringVarP(&flgResourceGroupNamePfx, "resourceGroupNamePfx", "", "testdeployrg", "Resource Group Name Prefix")
bicepCmd.Flags().StringVarP(&flgDeploymentNamePfx, "deploymentNamePfx", "", "testDeploy", "Deployment Name Prefix")
bicepCmd.Flags().StringVarP(&flgBicepFilePath, "bicepFilePath", "", "", "Path to bicep File")
err := bicepCmd.MarkFlagRequired("bicepFilePath")
if err != nil {
log.Errorf("Error marking flag required for Bicep file path: %v\n", err)
}
bicepCmd.Flags().StringVarP(&flgParametersFilePath, "parametersFilePath", "", "", "Path to bicep Parameters File")
err = bicepCmd.MarkFlagRequired("parametersFilePath")
if err != nil {
log.Errorf("Error marking flag required for Bicep parameters file path: %v\n", err)
}
bicepCmd.Flags().StringVarP(&flgBicepExecPath, "bicepExecPath", "", "", "Bicep Executable Path")
err = bicepCmd.MarkFlagRequired("bicepExecPath")
if err != nil {
log.Errorf("Error marking flag required for Bicep executable path: %v\n", err)
}
bicepCmd.Flags().StringVarP(&flgLocation, "location", "", "eastus2", "Location")
bicepCmd.Flags().BoolVarP(&flgSubscriptionScoped, "subscriptionScoped", "", false, "Is Deployment Subscription Scoped")
// bicepCmd.Flags().BoolVarP(&flgFullDeployment, "fullDeployment", "", false, "Full Deployment")
return bicepCmd
}