Chore: fix cli description to remove html tag format

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
This commit is contained in:
Jianbo Sun
2022-08-03 18:22:50 +08:00
parent bb67ecaecf
commit d4d3b1c9dd
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -857,7 +857,7 @@ func NewDefinitionApplyCommand(c common.Args, streams util.IOStreams) *cobra.Com
"# Command below will convert the ./defs/my-trait.cue file to kubernetes CRD object and print it without applying it to kubernetes\n" +
"> vela def apply ./defs/my-trait.cue --dry-run" +
"# Apply a CUE from URL \n" +
"> vela def apply https://<my-host-to-def>/my-trait.cue --dry-run" +
"> vela def apply https://my-host-to-def/my-trait.cue --dry-run" +
"# Apply a CUE from stdin \n" +
"> vela def apply -",
Args: cobra.ExactValidArgs(1),
+2 -2
View File
@@ -56,10 +56,10 @@ func NewDryRunCommand(c common.Args, ioStreams cmdutil.IOStreams) *cobra.Command
DisableFlagsInUseLine: true,
Short: "Dry Run an application, and output the K8s resources as result to stdout",
Long: `Dry-run application locally, render the Kubernetes resources as result to stdout.
vela dry-run -d <definition file or directory> -f /path/to/app.yaml
vela dry-run -d /definition/directory/or/file/ -f /path/to/app.yaml
You can also specify a remote url for app:
vela dry-run -d <definition file or directory> -f https://<remote-host>/app.yaml
vela dry-run -d /definition/directory/or/file/ -f https://remote-host/app.yaml
`,
Example: "vela dry-run",
Annotations: map[string]string{
+3 -3
View File
@@ -56,15 +56,15 @@ func NewQlCommand(c common.Args, order string, ioStreams util.IOStreams) *cobra.
Use: "ql",
Short: "Show result of executing velaQL.",
Long: `Show result of executing velaQL, use it like:
vela ql --query "<inner-view-name>{<param1>=<value1>,<param2>=<value2>}
vela ql --query "inner-view-name{param1=value1,param2=value2}"
vela ql --file ./ql.cue`,
Example: ` Users can query with a query statement:
vela ql --query "<inner-view-name>{<param1>=<value1>,<param2>=<value2>}"
vela ql --query "inner-view-name{param1=value1,param2=value2}"
Query by a ql file:
vela ql --file ./ql.cue
Query by a ql file from remote url:
vela ql --file https://<my-host-to-cue>/ql.cue
vela ql --file https://my.host.to.cue/ql.cue
Query by a ql file from stdin:
cat ./ql.cue | vela ql --file -