Skip to content

Commit 1484463

Browse files
committed
unindent examples to make docs and CLI look better
On-behalf-of: @SAP [email protected]
1 parent 11a92cb commit 1484463

File tree

4 files changed

+43
-43
lines changed

4 files changed

+43
-43
lines changed

cli/pkg/bind/cmd/cmd.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ import (
2828

2929
var (
3030
bindExampleUses = `
31-
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace.
32-
%[1]s bind apiexport root:my-service:my-export --name my-binding
31+
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace.
32+
%[1]s bind apiexport root:my-service:my-export --name my-binding
3333
34-
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace with accepted permission claims.
35-
%[1]s bind apiexport root:my-service:my-export --name my-binding --accept-permission-claim secrets.core,configmaps.core
34+
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace with accepted permission claims.
35+
%[1]s bind apiexport root:my-service:my-export --name my-binding --accept-permission-claim secrets.core,configmaps.core
3636
37-
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace with rejected permission claims.
38-
%[1]s bind apiexport root:my-service:my-export --name my-binding --reject-permission-claim secrets.core,configmaps.core
39-
`
37+
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace with rejected permission claims.
38+
%[1]s bind apiexport root:my-service:my-export --name my-binding --reject-permission-claim secrets.core,configmaps.core
39+
`
4040
)
4141

4242
func New(streams genericclioptions.IOStreams) *cobra.Command {

cli/pkg/claims/cmd/cmd.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ import (
3030
// TODO: Add examples for edit and update claims.
3131
var (
3232
claimsExample = `
33-
# Lists the permission claims and their respective status related to a specific APIBinding.
34-
%[1]s claims get apibinding cert-manager
33+
# Lists the permission claims and their respective status related to a specific APIBinding.
34+
%[1]s claims get apibinding cert-manager
3535
36-
# List permission claims and their respective status for all APIBindings in current workspace.
37-
%[1]s claims get apibinding
38-
`
36+
# List permission claims and their respective status for all APIBindings in current workspace.
37+
%[1]s claims get apibinding
38+
`
3939
)
4040

4141
// New returns a cobra.Command for claims related actions.

cli/pkg/crd/cmd/cmd.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import (
2828

2929
var (
3030
crdExample = `
31-
# Convert a CRD in a yaml file to an APIResourceSchema. For a CRD named widgets.example.io, and a prefix value of
32-
# 'today', the new APIResourceSchema's name will be today.widgets.example.io.
33-
%[1]s crd snapshot -f crd.yaml --prefix 2022-05-07 > api-resource-schema.yaml
31+
# Convert a CRD in a yaml file to an APIResourceSchema. For a CRD named widgets.example.io, and a prefix value of
32+
# 'today', the new APIResourceSchema's name will be today.widgets.example.io.
33+
%[1]s crd snapshot -f crd.yaml --prefix 2022-05-07 > api-resource-schema.yaml
3434
35-
# Convert a CRD from STDIN
36-
kubectl get crd foo -o yaml | %[1]s crd snapshot -f - --prefix today > output.yaml
35+
# Convert a CRD from STDIN
36+
kubectl get crd foo -o yaml | %[1]s crd snapshot -f - --prefix today > output.yaml
3737
`
3838
)
3939

cli/pkg/workspace/cmd/cmd.go

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,44 +30,44 @@ import (
3030

3131
var (
3232
workspaceExample = `
33-
# shows the workspace you are currently using
34-
%[1]s workspace .
33+
# shows the workspace you are currently using
34+
%[1]s workspace .
3535
36-
# enter a given workspace (this will change the current-context of your current KUBECONFIG)
37-
%[1]s workspace use my-workspace
36+
# enter a given workspace (this will change the current-context of your current KUBECONFIG)
37+
%[1]s workspace use my-workspace
3838
39-
# short-hand for the use syntax
40-
%[1]s workspace my-workspace
39+
# short-hand for the use syntax
40+
%[1]s workspace my-workspace
4141
42-
# enter a given absolute workspace
43-
%[1]s workspace :root:default:my-workspace
42+
# enter a given absolute workspace
43+
%[1]s workspace :root:default:my-workspace
4444
45-
# short-hand for the current root workspace
46-
%[1]s workspace :
45+
# short-hand for the current root workspace
46+
%[1]s workspace :
4747
48-
# enter a given relative workspace
49-
%[1]s workspace some:nested:workspace
48+
# enter a given relative workspace
49+
%[1]s workspace some:nested:workspace
5050
51-
# enter the parent workspace
52-
%[1]s workspace ..
51+
# enter the parent workspace
52+
%[1]s workspace ..
5353
54-
# enter the grand parent workspace
55-
%[1]s workspace ..:..
54+
# enter the grand parent workspace
55+
%[1]s workspace ..:..
5656
57-
# enter the previous workspace
58-
%[1]s workspace -
57+
# enter the previous workspace
58+
%[1]s workspace -
5959
60-
# go to your home workspace
61-
%[1]s workspace
60+
# go to your home workspace
61+
%[1]s workspace
6262
63-
# create a workspace and immediately enter it
64-
%[1]s workspace create my-workspace --enter
63+
# create a workspace and immediately enter it
64+
%[1]s workspace create my-workspace --enter
6565
66-
# create a context with the current workspace, e.g. root:default:my-workspace
67-
%[1]s workspace create-context
66+
# create a context with the current workspace, e.g. root:default:my-workspace
67+
%[1]s workspace create-context
6868
69-
# create a context with the current workspace, named context-name
70-
%[1]s workspace create-context context-name
69+
# create a context with the current workspace, named context-name
70+
%[1]s workspace create-context context-name
7171
`
7272
)
7373

0 commit comments

Comments
 (0)