Skip to content

Commit 9e96064

Browse files
authored
escape json example in CLI docs to fit docs site (#712)
1 parent 9d40c99 commit 9e96064

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cli/cmd/policy_create.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func (r *runners) InitPolicyCreate(parent *cobra.Command) *cobra.Command {
2424
Long: `Create a new RBAC policy from a JSON definition file.
2525
2626
The definition file must be valid JSON in the following format:
27+
` + "```json" + `
2728
{
2829
"v1": {
2930
"name": "My Policy",
@@ -33,6 +34,7 @@ The definition file must be valid JSON in the following format:
3334
}
3435
}
3536
}
37+
` + "```" + `
3638
3739
Vendors not on an enterprise plan cannot create policies.`,
3840
Example: ` # Create a policy from a definition file

0 commit comments

Comments
 (0)