mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
620287c7a4
* feat(cli): add referrers command to cli Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> * feat(cli): add global search command Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> * feat(cli): fix comments Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> --------- Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
14 lines
391 B
Go
14 lines
391 B
Go
//go:build search
|
|
// +build search
|
|
|
|
package cli
|
|
|
|
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()))
|
|
}
|