forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.go
25 lines (21 loc) · 815 Bytes
/
release.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package release
import (
"github.com/spf13/cobra"
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/kubectl/genericclioptions"
)
func NewCmd(f kcmdutil.Factory, parentName string, streams genericclioptions.IOStreams) *cobra.Command {
cmd := &cobra.Command{
Use: "release",
Short: "Tools for managing the OpenShift release process",
Long: templates.LongDesc(`
This tool is used by OpenShift release to build upgrade payloads.
Experimental: This command is under active development and may change without notice.
`),
}
cmd.AddCommand(NewRelease(f, parentName+" release", streams))
cmd.AddCommand(NewExtract(f, parentName+" release", streams))
cmd.AddCommand(NewMirror(f, parentName+" release", streams))
return cmd
}