mirror of
https://github.com/beego/bee.git
synced 2025-06-14 13:30:40 +00:00
add arguments support to rs functionality (#386)
This commit is contained in:

committed by
Faissal Elamraoui

parent
8c0742c140
commit
48c931d635
32
README.md
32
README.md
@ -169,6 +169,38 @@ ______
|
||||
|
||||
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
|
||||
|
||||
To create a Beego API application:
|
||||
|
Reference in New Issue
Block a user