-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Expand file tree
/
Copy pathconfig.go
More file actions
28 lines (20 loc) · 704 Bytes
/
config.go
File metadata and controls
28 lines (20 loc) · 704 Bytes
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
26
27
28
package config
import (
"io"
"github.com/spf13/cobra"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"github.com/openshift/origin/pkg/cmd/templates"
"github.com/openshift/origin/pkg/cmd/util/clientcmd"
)
const ConfigRecommendedName = "config"
var configLong = templates.LongDesc(`Manage cluster configuration files like master-config.yaml.`)
func NewCmdConfig(name, fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: name,
Short: "Manage config",
Long: configLong,
Run: cmdutil.DefaultSubCommandRun(errout),
}
cmd.AddCommand(NewCmdPatch(PatchRecommendedName, fullName+" "+PatchRecommendedName, f, out))
return cmd
}