File tree Expand file tree Collapse file tree 18 files changed +43
-32
lines changed
Expand file tree Collapse file tree 18 files changed +43
-32
lines changed Original file line number Diff line number Diff line change 4747# ## These variables should not need tweaking.
4848# ##
4949
50- SRC_PKGS := cmds context *.go
51- SRC_DIRS := $(SRC_PKGS ) hack/gendocs # directories which hold app source (not vendored)
50+ SRC_PKGS := cmds context
51+ SRC_DIRS := $(SRC_PKGS ) *.go hack/gendocs # directories which hold app source (not vendored)
5252
5353DOCKER_PLATFORMS := linux/amd64 linux/arm linux/arm64
5454BIN_PLATFORMS := $(DOCKER_PLATFORMS ) windows/amd64 darwin/amd64
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func NewCmdConfig() *cobra.Command {
2525 Example : "osm config view" ,
2626 DisableAutoGenTag : true ,
2727 Run : func (cmd * cobra.Command , args []string ) {
28- cmd .Help ()
28+ _ = cmd .Help ()
2929 },
3030 }
3131
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func newCmdCurrent() *cobra.Command {
3232 DisableAutoGenTag : true ,
3333 Run : func (cmd * cobra.Command , args []string ) {
3434 if len (args ) > 0 {
35- cmd .Help ()
35+ _ = cmd .Help ()
3636 os .Exit (1 )
3737 }
3838 currentContext (otx .GetConfigPath (cmd ))
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func newCmdGet() *cobra.Command {
3434 DisableAutoGenTag : true ,
3535 Run : func (cmd * cobra.Command , args []string ) {
3636 if len (args ) > 0 {
37- cmd .Help ()
37+ _ = cmd .Help ()
3838 os .Exit (1 )
3939 }
4040 getContexts (otx .GetConfigPath (cmd ))
Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ func newCmdSet() *cobra.Command {
7171 Run : func (cmd * cobra.Command , args []string ) {
7272 if len (args ) == 0 {
7373 term .Errorln ("Provide context name as argument. See examples:" )
74- cmd .Help ()
74+ _ = cmd .Help ()
7575 os .Exit (1 )
7676 } else if len (args ) > 1 {
77- cmd .Help ()
77+ _ = cmd .Help ()
7878 os .Exit (1 )
7979 }
8080
Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ func newCmdUse() *cobra.Command {
3333 Run : func (cmd * cobra.Command , args []string ) {
3434 if len (args ) == 0 {
3535 term .Errorln ("Provide context name as argument. See examples:" )
36- cmd .Help ()
36+ _ = cmd .Help ()
3737 os .Exit (1 )
3838 } else if len (args ) > 1 {
39- cmd .Help ()
39+ _ = cmd .Help ()
4040 os .Exit (1 )
4141 }
4242
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ func newCmdView() *cobra.Command {
3333 DisableAutoGenTag : true ,
3434 Run : func (cmd * cobra.Command , args []string ) {
3535 if len (args ) > 0 {
36- cmd .Help ()
36+ _ = cmd .Help ()
3737 os .Exit (1 )
3838 }
3939 viewContext (otx .GetConfigPath (cmd ))
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func NewCmdListContainers() *cobra.Command {
3939 DisableAutoGenTag : true ,
4040 Run : func (cmd * cobra.Command , args []string ) {
4141 if len (args ) > 1 {
42- cmd .Help ()
42+ _ = cmd .Help ()
4343 os .Exit (1 )
4444 }
4545
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ func NewCmdListIetms() *cobra.Command {
4343 Run : func (cmd * cobra.Command , args []string ) {
4444 if len (args ) == 0 {
4545 term .Errorln ("Provide container name as argument. See examples:" )
46- cmd .Help ()
46+ _ = cmd .Help ()
4747 os .Exit (1 )
4848 } else if len (args ) > 1 {
49- cmd .Help ()
49+ _ = cmd .Help ()
5050 os .Exit (1 )
5151 }
5252
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ func NewCmdMakeContainer() *cobra.Command {
3939 Run : func (cmd * cobra.Command , args []string ) {
4040 if len (args ) == 0 {
4141 term .Errorln ("Provide container name as argument. See examples:" )
42- cmd .Help ()
42+ _ = cmd .Help ()
4343 os .Exit (1 )
4444 } else if len (args ) > 1 {
45- cmd .Help ()
45+ _ = cmd .Help ()
4646 os .Exit (1 )
4747 }
4848
You can’t perform that action at this time.
0 commit comments