mirror of
https://github.com/beego/bee.git
synced 2024-06-26 05:04:13 +00:00
docs
This commit is contained in:
parent
95f67cb3ce
commit
de86254248
32
README.md
32
README.md
|
@ -165,6 +165,38 @@ ______
|
||||||
|
|
||||||
For more information on the usage, run `bee help pack`.
|
For more information on the usage, run `bee help pack`.
|
||||||
|
|
||||||
|
### bee rs
|
||||||
|
Inspired by makefile / npm scripts.
|
||||||
|
Run script allows you to run arbitrary commands using Bee.
|
||||||
|
Custom commands are provided from the "scripts" object inside bee.json or Beefile.
|
||||||
|
|
||||||
|
To run a custom command, use: $ bee rs mycmd ARGS
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ bee help rs
|
||||||
|
|
||||||
|
USAGE
|
||||||
|
bee rs
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
Run script allows you to run arbitrary commands using Bee.
|
||||||
|
Custom commands are provided from the "scripts" object inside bee.json or Beefile.
|
||||||
|
|
||||||
|
To run a custom command, use: $ bee rs mycmd ARGS
|
||||||
|
|
||||||
|
AVAILABLE SCRIPTS
|
||||||
|
gtest
|
||||||
|
APP_ENV=test APP_CONF_PATH=$(pwd)/conf go test -v -cover
|
||||||
|
gtestall
|
||||||
|
APP_ENV=test APP_CONF_PATH=$(pwd)/conf go test -v -cover $(go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
*Run your scripts with:*
|
||||||
|
```$ bee rs gtest tests/*.go```
|
||||||
|
```$ bee rs gtestall```
|
||||||
|
|
||||||
|
|
||||||
### bee api
|
### bee api
|
||||||
|
|
||||||
To create a Beego API application:
|
To create a Beego API application:
|
||||||
|
|
|
@ -41,7 +41,7 @@ var cmdRs = &commands.Command{
|
||||||
To run a custom command, use: {{"$ bee rs mycmd ARGS" | bold}}
|
To run a custom command, use: {{"$ bee rs mycmd ARGS" | bold}}
|
||||||
{{if len .}}
|
{{if len .}}
|
||||||
{{"AVAILABLE SCRIPTS"|headline}}{{range $cmdName, $cmd := .}}
|
{{"AVAILABLE SCRIPTS"|headline}}{{range $cmdName, $cmd := .}}
|
||||||
{{$cmdName | printf "-%s" | bold}}
|
{{$cmdName | bold}}
|
||||||
{{$cmd}}{{end}}{{end}}
|
{{$cmd}}{{end}}{{end}}
|
||||||
`,
|
`,
|
||||||
PreRun: func(cmd *commands.Command, args []string) { version.ShowShortVersionBanner() },
|
PreRun: func(cmd *commands.Command, args []string) { version.ShowShortVersionBanner() },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user