Skip to content

Commit 19865ed

Browse files
authored
Merge pull request #3863 from AkihiroSuda/indent-limactl-start-examples
limactl (create|start) --help: indent examples
2 parents dc3db49 + b112001 commit 19865ed

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

cmd/limactl/start.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,29 @@ func newCreateCommand() *cobra.Command {
4141
createCommand := &cobra.Command{
4242
Use: "create FILE.yaml|URL",
4343
Example: `
44-
To create an instance "default" from the default Ubuntu template:
45-
$ limactl create
44+
To create an instance "default" from the default Ubuntu template:
45+
$ limactl create
4646
47-
To create an instance "default" from a template "docker":
48-
$ limactl create --name=default template://docker
47+
To create an instance "default" from a template "docker":
48+
$ limactl create --name=default template://docker
4949
50-
To create an instance "default" with modified parameters:
51-
$ limactl create --cpus=2 --memory=2
50+
To create an instance "default" with modified parameters:
51+
$ limactl create --cpus=2 --memory=2
5252
53-
To create an instance "default" with yq expressions:
54-
$ limactl create --set='.cpus = 2 | .memory = "2GiB"'
53+
To create an instance "default" with yq expressions:
54+
$ limactl create --set='.cpus = 2 | .memory = "2GiB"'
5555
56-
To see the template list:
57-
$ limactl create --list-templates
56+
To see the template list:
57+
$ limactl create --list-templates
5858
59-
To create an instance "default" from a local file:
60-
$ limactl create --name=default /usr/local/share/lima/templates/fedora.yaml
59+
To create an instance "default" from a local file:
60+
$ limactl create --name=default /usr/local/share/lima/templates/fedora.yaml
6161
62-
To create an instance "default" from a remote URL (use carefully, with a trustable source):
63-
$ limactl create --name=default https://raw.githubusercontent.com/lima-vm/lima/master/templates/alpine.yaml
62+
To create an instance "default" from a remote URL (use carefully, with a trustable source):
63+
$ limactl create --name=default https://raw.githubusercontent.com/lima-vm/lima/master/templates/alpine.yaml
6464
65-
To create an instance "local" from a template passed to stdin (--name parameter is required):
66-
$ cat template.yaml | limactl create --name=local -
65+
To create an instance "local" from a template passed to stdin (--name parameter is required):
66+
$ cat template.yaml | limactl create --name=local -
6767
`,
6868
Short: "Create an instance of Lima",
6969
Args: WrapArgsError(cobra.MaximumNArgs(1)),
@@ -79,11 +79,11 @@ func newStartCommand() *cobra.Command {
7979
startCommand := &cobra.Command{
8080
Use: "start NAME|FILE.yaml|URL",
8181
Example: `
82-
To create an instance "default" (if not created yet) from the default Ubuntu template, and start it:
83-
$ limactl start
82+
To create an instance "default" (if not created yet) from the default Ubuntu template, and start it:
83+
$ limactl start
8484
85-
To create an instance "default" from a template "docker", and start it:
86-
$ limactl start --name=default template://docker
85+
To create an instance "default" from a template "docker", and start it:
86+
$ limactl start --name=default template://docker
8787
8888
'limactl start' also accepts the 'limactl create' flags such as '--set'.
8989
See the examples in 'limactl create --help'.

0 commit comments

Comments
 (0)