refactor: Reduce zli binary size (#1805)

Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
Alexei Dodon
2023-09-16 01:17:01 +03:00
committed by GitHub
parent 8e18917b07
commit f58597ade9
45 changed files with 166 additions and 155 deletions
+14
View File
@@ -0,0 +1,14 @@
//go:build search
// +build search
package client
import "github.com/spf13/cobra"
func enableCli(rootCmd *cobra.Command) {
rootCmd.AddCommand(NewConfigCommand())
rootCmd.AddCommand(NewImageCommand(NewSearchService()))
rootCmd.AddCommand(NewCVECommand(NewSearchService()))
rootCmd.AddCommand(NewRepoCommand(NewSearchService()))
rootCmd.AddCommand(NewSearchCommand(NewSearchService()))
}