File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
cmd/kubebuilder/create/example Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ import (
22
22
"os"
23
23
"path/filepath"
24
24
25
+ "strings"
26
+
25
27
"github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/util"
26
28
"github.com/spf13/cobra"
27
- "strings"
28
29
)
29
30
30
31
// configCmd represents the config command
@@ -34,14 +35,17 @@ var configCmd = &cobra.Command{
34
35
Long : `Create the docs example scaffoling for an API.
35
36
36
37
Example is written to docs/reference/examples/<lower kind>/<lower kind>.yaml
38
+ ` ,
39
+ Example : `# Create a new documentation example under docs/reference/examples/mykind/mykind.yaml
40
+ kubebuilder create example --kind MyKind --version v1beta1 --group mygroup.my.domain
37
41
` ,
38
42
Run : func (cmd * cobra.Command , args []string ) {
39
43
if kind == "" {
40
44
fmt .Printf ("Must specify --kind\n " )
41
45
return
42
46
}
43
47
if version == "" {
44
- fmt .Printf ("Must specify --name \n " )
48
+ fmt .Printf ("Must specify --version \n " )
45
49
return
46
50
}
47
51
if group == "" {
You can’t perform that action at this time.
0 commit comments