@@ -17,7 +17,7 @@ import (
17
17
18
18
type CommonFlags struct {
19
19
configFile string
20
- siteName string
20
+ site string
21
21
ignoreVersion bool
22
22
outputPath string
23
23
varFile string
@@ -29,7 +29,7 @@ var commonFlags CommonFlags
29
29
func registerCommonFlags (cmd * cobra.Command ) {
30
30
cmd .Flags ().StringVarP (& commonFlags .configFile , "file" , "f" , "main.yml" , "YAML file to parse." )
31
31
cmd .Flags ().StringVarP (& commonFlags .varFile , "var-file" , "" , "" , "Use a variable file to parse the configuration with." )
32
- cmd .Flags ().StringVarP (& commonFlags .siteName , "site" , "s" , "" , "Site to parse. If not set parse all sites." )
32
+ cmd .Flags ().StringVarP (& commonFlags .site , "site" , "s" , "" , "Site to parse. If not set parse all sites." )
33
33
cmd .Flags ().BoolVarP (& commonFlags .ignoreVersion , "ignore-version" , "" , false , "Skip MACH composer version check" )
34
34
cmd .Flags ().StringVarP (& commonFlags .outputPath , "output-path" , "" , "deployments" ,
35
35
"Outputs path to store the generated files." )
@@ -39,10 +39,6 @@ func registerCommonFlags(cmd *cobra.Command) {
39
39
}
40
40
41
41
func preprocessCommonFlags (cmd * cobra.Command ) {
42
- if commonFlags .siteName != "" {
43
- log .Warn ().Msgf ("Site option not implemented" )
44
- }
45
-
46
42
handleError (cmd .MarkFlagFilename ("var-file" , "yml" , "yaml" ))
47
43
handleError (cmd .MarkFlagFilename ("file" , "yml" , "yaml" ))
48
44
0 commit comments