Skip to content

Commit

Permalink
docs: fix the cli doc build error (#1688)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Jul 6, 2023
1 parent fb7a362 commit 9f5399c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pkg/app/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ var CommandBootstrap = &cli.Command{
},
&cli.BoolFlag{
Name: "with-autocomplete",
Usage: "Add envd autocompletions",
Usage: "Add envd auto-completions",
Value: true,
},
&cli.StringFlag{
Name: "dockerhub-mirror",
Usage: "Dockerhub mirror to use",
Usage: "DockerHub mirror to use",
Aliases: []string{"m"},
},
&cli.StringFlag{
Expand All @@ -63,7 +63,7 @@ var CommandBootstrap = &cli.Command{
},
&cli.StringSliceFlag{
Name: "ssh-keypair",
Usage: fmt.Sprintf("Manually specify ssh key pair as `publicKey,privateKey`. Envd will generate a keypair at %s and %s if not specified",
Usage: fmt.Sprintf("Manually specify ssh key pair as `publicKey,privateKey`. envd will generate a keypair at %s and %s if not specified",
sshconfig.GetPublicKeyOrPanic(), sshconfig.GetPrivateKeyOrPanic()),
Aliases: []string{"k"},
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/app/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ To build and push the image to a registry:
// https://github.com/urfave/cli/issues/1134#issuecomment-1191407527
&cli.StringFlag{
Name: "export-cache",
Usage: "Export the cache (e.g. type=registry,ref=<image>)",
Usage: "Export the cache (e.g. `type=registry,ref=<image>`)",
Aliases: []string{"ec"},
},
&cli.StringFlag{
Name: "import-cache",
Usage: "Import the cache (e.g. type=registry,ref=<image>)",
Usage: "Import the cache (e.g. `type=registry,ref=<image>`)",
Aliases: []string{"ic"},
},
&cli.StringFlag{
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var CommandCreate = &cli.Command{
},
&cli.StringFlag{
Name: "host",
Usage: "Assign the host address for environment ssh acesss server listening",
Usage: "Assign the host address for the environment SSH access server listening",
Value: envd.Localhost,
},
&cli.IntFlag{
Expand Down
6 changes: 3 additions & 3 deletions pkg/app/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,18 @@ var CommandUp = &cli.Command{
},
&cli.StringFlag{
Name: "host",
Usage: "Assign the host address for environment ssh acesss server listening",
Usage: "Assign the host address for the environment SSH access server listening",
Value: envd.Localhost,
},
// https://github.com/urfave/cli/issues/1134#issuecomment-1191407527
&cli.StringFlag{
Name: "export-cache",
Usage: "Export the cache (e.g. type=registry,ref=<image>)",
Usage: "Export the cache (e.g. `type=registry,ref=<image>`)",
Aliases: []string{"ec"},
},
&cli.StringFlag{
Name: "import-cache",
Usage: "Import the cache (e.g. type=registry,ref=<image>)",
Usage: "Import the cache (e.g. `type=registry,ref=<image>`)",
Aliases: []string{"ic"},
},
&cli.StringFlag{
Expand Down

0 comments on commit 9f5399c

Please sign in to comment.