|
...
|
...
|
@@ -41,8 +41,8 @@ After your project is created you can switch to it using %[2]s <project name>.`
|
|
41
|
41
|
requestProjectExample = ` // Create a new project with minimal information
|
|
42
|
42
|
$ %[1]s web-team-dev
|
|
43
|
43
|
|
|
44
|
|
- // Create a new project with a description and node selector
|
|
45
|
|
- $ %[1]s web-team-dev --display-name="Web Team Development" --description="Development project for the web team." --node-selector="env=dev"`
|
|
|
44
|
+ // Create a new project with a display name and description
|
|
|
45
|
+ $ %[1]s web-team-dev --display-name="Web Team Development" --description="Development project for the web team."`
|
|
46
|
46
|
)
|
|
47
|
47
|
|
|
48
|
48
|
func NewCmdRequestProject(name, fullName, oscLoginName, oscProjectName string, f *clientcmd.Factory, out io.Writer) *cobra.Command {
|
|
...
|
...
|
@@ -50,7 +50,7 @@ func NewCmdRequestProject(name, fullName, oscLoginName, oscProjectName string, f
|
|
50
|
50
|
options.Out = out
|
|
51
|
51
|
|
|
52
|
52
|
cmd := &cobra.Command{
|
|
53
|
|
- Use: fmt.Sprintf("%s NAME [--display-name=DISPLAYNAME] [--description=DESCRIPTION] [--node-selector=<label selector>]", name),
|
|
|
53
|
+ Use: fmt.Sprintf("%s NAME [--display-name=DISPLAYNAME] [--description=DESCRIPTION]", name),
|
|
54
|
54
|
Short: "Request a new project",
|
|
55
|
55
|
Long: fmt.Sprintf(requestProjectLong, oscLoginName, oscProjectName),
|
|
56
|
56
|
Example: fmt.Sprintf(requestProjectExample, fullName),
|
|
...
|
...
|
@@ -70,9 +70,8 @@ func NewCmdRequestProject(name, fullName, oscLoginName, oscProjectName string, f
|
|
70
|
70
|
}
|
|
71
|
71
|
cmd.SetOutput(out)
|
|
72
|
72
|
|
|
73
|
|
- cmd.Flags().StringVar(&options.DisplayName, "display-name", "", "project display name")
|
|
74
|
|
- cmd.Flags().StringVar(&options.Description, "description", "", "project description")
|
|
75
|
|
- cmd.Flags().StringVar(&options.NodeSelector, "node-selector", "", "Restrict pods onto nodes matching given label selector. Format: '<key1>=<value1>, <key2>=<value2>...'")
|
|
|
73
|
+ cmd.Flags().StringVar(&options.DisplayName, "display-name", "", "Project display name")
|
|
|
74
|
+ cmd.Flags().StringVar(&options.Description, "description", "", "Project description")
|
|
76
|
75
|
|
|
77
|
76
|
return cmd
|
|
78
|
77
|
}
|