Use bash comments in kubectl examples
Comments in kubectl examples should use bash comments, not Go comments. So, replaces // by # for example strings.
This commit is contained in:
@@ -34,10 +34,10 @@ const (
|
||||
create_long = `Create a resource by filename or stdin.
|
||||
|
||||
JSON and YAML formats are accepted.`
|
||||
create_example = `// Create a pod using the data in pod.json.
|
||||
create_example = `# Create a pod using the data in pod.json.
|
||||
$ kubectl create -f ./pod.json
|
||||
|
||||
// Create a pod based on the JSON passed into stdin.
|
||||
# Create a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl create -f -`
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user