@@ -36,6 +36,9 @@ func main() {
3636 & cli.StringFlag {Name : "monitoring-links" , Usage : "Multiple HTTP URLs of the monitoring dashboard of the servide, separated by comma" },
3737 & cli.StringFlag {Name : "parameters" , Usage : "Additional parameters" },
3838 }
39+ queueFlags := []cli.Flag {
40+ & cli.StringFlag {Name : "queue" , Required : false , Usage : "Specifies a file path to store the queue in." },
41+ }
3942 app := & cli.App {
4043 Name : "go-cat" ,
4144 Usage : "CLI tool to have an overview of Infrastructure, as an API as well as Markdown" ,
@@ -53,16 +56,14 @@ func main() {
5356 Usage : "Add infrastructure to queue" ,
5457 Action : addInfrastructureCliContext ,
5558
56- Flags : append (infraFlags ,
57- & cli.StringFlag {Name : "queue" , Required : false , Usage : "Specifies a file path to store the queue in." },
58- ),
59+ Flags : append (infraFlags , queueFlags ... ),
5960 },
6061 {
6162 Name : "push" ,
6263 Usage : "Push changes from infrastructure queue to git" ,
6364 Action : pushInfrastructureCliContext ,
6465
65- Flags : gitFlags ,
66+ Flags : append ( gitFlags , queueFlags ... ) ,
6667 },
6768 {
6869 Name : "cat" ,
0 commit comments