mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-23 22:46:53 +00:00
Chore: fix cli description to remove html tag format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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 -
|
||||
|
||||
|
||||
Reference in New Issue
Block a user