Skip to content

Commit

Permalink
chore: Remove deprecated CLI commands (#558)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pacak <[email protected]>
  • Loading branch information
danielpacak authored May 19, 2021
1 parent edb7522 commit 1425f26
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 151 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/hashicorp/go-version v1.2.0
github.com/onsi/ginkgo v1.16.1
github.com/onsi/gomega v1.11.0
github.com/spf13/cobra v1.1.1
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
github.com/valyala/quicktemplate v1.6.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4=
github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI=
github.com/spf13/cobra v1.1.3 h1:xghbfqPkxzxP3C/f3n5DdpAbdKLj4ZE4BWQI362l53M=
github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo=
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/config_test.go

This file was deleted.

17 changes: 0 additions & 17 deletions pkg/cmd/find.go

This file was deleted.

1 change: 0 additions & 1 deletion pkg/cmd/find_test.go

This file was deleted.

53 changes: 0 additions & 53 deletions pkg/cmd/find_vulnerabilities.go

This file was deleted.

1 change: 0 additions & 1 deletion pkg/cmd/find_vulnerabilities_test.go

This file was deleted.

1 change: 0 additions & 1 deletion pkg/cmd/init_test.go

This file was deleted.

21 changes: 0 additions & 21 deletions pkg/cmd/kube_bench.go

This file was deleted.

21 changes: 0 additions & 21 deletions pkg/cmd/kube_hunter.go

This file was deleted.

23 changes: 0 additions & 23 deletions pkg/cmd/polaris.go

This file was deleted.

1 change: 0 additions & 1 deletion pkg/cmd/polaris_test.go

This file was deleted.

4 changes: 0 additions & 4 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ func NewRootCmd(buildInfo starboard.BuildInfo, args []string, outWriter io.Write

rootCmd.AddCommand(NewVersionCmd(buildInfo, outWriter))
rootCmd.AddCommand(NewInitCmd(cf))
rootCmd.AddCommand(NewFindCmd(buildInfo, cf))
rootCmd.AddCommand(NewScanCmd(buildInfo, cf))
rootCmd.AddCommand(NewKubeBenchCmd(cf))
rootCmd.AddCommand(NewKubeHunterCmd(cf))
rootCmd.AddCommand(NewPolarisCmd(buildInfo, cf))
rootCmd.AddCommand(NewGetCmd(buildInfo, cf, outWriter))
rootCmd.AddCommand(NewCleanupCmd(cf))
rootCmd.AddCommand(NewConfigCmd(cf, outWriter))
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/root_test.go

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewScanVulnerabilityReportsCmd(buildInfo starboard.BuildInfo, cf *genericcl
Aliases: []string{"vulns", "vuln"},
Use: "vulnerabilityreports (NAME | TYPE/NAME)",
Short: vulnerabilitiesCmdShort,
Long: vulnerabilitiesCmdShort,
Long: vulnerabilitiesCmdLong,
Example: fmt.Sprintf(` # Scan a pod with the specified name
%[1]s scan vulnerabilities nginx
Expand Down
2 changes: 0 additions & 2 deletions pkg/cmd/version_test.go

This file was deleted.

0 comments on commit 1425f26

Please sign in to comment.