/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/cmd/openshift-tests/list/root.go
28 строк
753 B
Stephen Benjamin
Migrate origin to use OTE, and implement extension-derived suites
07 июл 2025, 19:34
07 июл 2025, 19:34
c4895d7
Код
Авторство
О чём код?
package list import ( "github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdlist" "github.com/openshift-eng/openshift-tests-extension/pkg/extension" "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" ) func NewListCommand(streams genericclioptions.IOStreams, extensionRegistry *extension.Registry) *cobra.Command { oteListCmd := cmdlist.NewListCommand(extensionRegistry) // Remove OTE's own suites command (maybe put it back later, if we can register all the // extension suites here too). for _, c := range oteListCmd.Commands() { if c.Use == "suites" { oteListCmd.RemoveCommand(c) } } oteListCmd.AddCommand( NewListSuitesCommand(streams), NewListExtensionsCommand(streams), ) return oteListCmd }