feat: added run example and args
This commit is contained in:
parent
a4d1de9a51
commit
e458783061
1 changed files with 13 additions and 2 deletions
13
cmd/run.go
13
cmd/run.go
|
|
@ -4,7 +4,18 @@ import "github.com/spf13/cobra"
|
||||||
|
|
||||||
var runCmd = &cobra.Command{
|
var runCmd = &cobra.Command{
|
||||||
Use: "run",
|
Use: "run",
|
||||||
Short: "Run 'makeshift' locally with plugins",
|
Example: `
|
||||||
|
# set up environment
|
||||||
|
export MAKESHIFT_HOST=http://localhost:5050
|
||||||
|
export MAKESHIFT_PATH=help.txt
|
||||||
|
export MAKESHIFT_ROOT=./test
|
||||||
|
|
||||||
|
# run locally similar to 'download'
|
||||||
|
makeshift run --plugins jinja2 --profiles default
|
||||||
|
makeshift run --root ./test -p help.txt --plugins jinja2 --profiles default
|
||||||
|
`,
|
||||||
|
Args: cobra.NoArgs,
|
||||||
|
Short: "Run locally with plugins and profiles",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue