@@ -15,7 +15,7 @@ import (
1515)
1616
1717func init () {
18- cli .BashCompletionFlag = cli.BoolFlag {Name : "compgen" , Hidden : true }
18+ cli .BashCompletionFlag = & cli.BoolFlag {Name : "compgen" , Hidden : true }
1919}
2020
2121const ApplicationName = "plural"
@@ -36,8 +36,8 @@ func (p *Plural) InitKube() error {
3636 return nil
3737}
3838
39- func (p * Plural ) getCommands () []cli.Command {
40- return []cli.Command {
39+ func (p * Plural ) getCommands () []* cli.Command {
40+ return []* cli.Command {
4141 {
4242 Name : "version" ,
4343 Aliases : []string {"v" , "vsn" },
@@ -49,11 +49,11 @@ func (p *Plural) getCommands() []cli.Command {
4949 Aliases : []string {"b" },
5050 Usage : "builds your workspace" ,
5151 Flags : []cli.Flag {
52- cli.StringFlag {
52+ & cli.StringFlag {
5353 Name : "only" ,
5454 Usage : "repository to (re)build" ,
5555 },
56- cli.BoolFlag {
56+ & cli.BoolFlag {
5757 Name : "force" ,
5858 Usage : "force workspace to build even if remote is out of sync" ,
5959 },
@@ -66,27 +66,27 @@ func (p *Plural) getCommands() []cli.Command {
6666 Usage : "Deploys the current workspace. This command will first sniff out git diffs in workspaces, topsort them, then apply all changes." ,
6767 ArgsUsage : "WKSPACE" ,
6868 Flags : []cli.Flag {
69- cli.BoolFlag {
69+ & cli.BoolFlag {
7070 Name : "silence" ,
7171 Usage : "don't display notes for deployed apps" ,
7272 },
73- cli.BoolFlag {
73+ & cli.BoolFlag {
7474 Name : "verbose" ,
7575 Usage : "show all command output during execution" ,
7676 },
77- cli.BoolFlag {
77+ & cli.BoolFlag {
7878 Name : "ignore-console" ,
7979 Usage : "don't deploy the plural console" ,
8080 },
81- cli.BoolFlag {
81+ & cli.BoolFlag {
8282 Name : "all" ,
8383 Usage : "deploy all repos irregardless of changes" ,
8484 },
85- cli.StringFlag {
85+ & cli.StringFlag {
8686 Name : "commit" ,
8787 Usage : "commits your changes with this message" ,
8888 },
89- cli.BoolFlag {
89+ & cli.BoolFlag {
9090 Name : "force" ,
9191 Usage : "use force push when pushing to git" ,
9292 },
@@ -131,7 +131,7 @@ func (p *Plural) getCommands() []cli.Command {
131131 Name : "apply" ,
132132 Usage : "applys the current pluralfile" ,
133133 Flags : []cli.Flag {
134- cli.StringFlag {
134+ & cli.StringFlag {
135135 Name : "file, f" ,
136136 Usage : "pluralfile to use" ,
137137 },
@@ -144,7 +144,7 @@ func (p *Plural) getCommands() []cli.Command {
144144 Aliases : []string {"v" },
145145 Usage : "validates your workspace" ,
146146 Flags : []cli.Flag {
147- cli.StringFlag {
147+ & cli.StringFlag {
148148 Name : "only" ,
149149 Usage : "repository to (re)build" ,
150150 },
@@ -172,15 +172,15 @@ func (p *Plural) getCommands() []cli.Command {
172172 Usage : "iterates through all installations in reverse topological order, deleting helm installations and terraform" ,
173173 ArgsUsage : "WKSPACE" ,
174174 Flags : []cli.Flag {
175- cli.StringFlag {
175+ & cli.StringFlag {
176176 Name : "from" ,
177177 Usage : "where to start your deploy command (useful when restarting interrupted destroys)" ,
178178 },
179- cli.StringFlag {
179+ & cli.StringFlag {
180180 Name : "commit" ,
181181 Usage : "commits your changes with this message" ,
182182 },
183- cli.BoolFlag {
183+ & cli.BoolFlag {
184184 Name : "force" ,
185185 Usage : "use force push when pushing to git" ,
186186 },
@@ -191,11 +191,11 @@ func (p *Plural) getCommands() []cli.Command {
191191 Name : "init" ,
192192 Usage : "initializes plural within a git repo" ,
193193 Flags : []cli.Flag {
194- cli.StringFlag {
194+ & cli.StringFlag {
195195 Name : "endpoint" ,
196196 Usage : "the endpoint for the plural installation you're working with" ,
197197 },
198- cli.StringFlag {
198+ & cli.StringFlag {
199199 Name : "service-account" ,
200200 Usage : "email for the service account you'd like to use for this workspace" ,
201201 },
@@ -212,11 +212,11 @@ func (p *Plural) getCommands() []cli.Command {
212212 Usage : "logs into plural and saves credentials to the current config profile" ,
213213 Action : handleLogin ,
214214 Flags : []cli.Flag {
215- cli.StringFlag {
215+ & cli.StringFlag {
216216 Name : "endpoint" ,
217217 Usage : "the endpoint for the plural installation you're working with" ,
218218 },
219- cli.StringFlag {
219+ & cli.StringFlag {
220220 Name : "service-account" ,
221221 Usage : "email for the service account you'd like to use for this workspace" ,
222222 },
@@ -337,7 +337,7 @@ func (p *Plural) getCommands() []cli.Command {
337337 Aliases : []string {"tpl" },
338338 Usage : "templates a helm chart to be uploaded to plural" ,
339339 Flags : []cli.Flag {
340- cli.StringFlag {
340+ & cli.StringFlag {
341341 Name : "values" ,
342342 Usage : "the values file" ,
343343 },
0 commit comments