commit
7d4f74ddea
86
README.md
86
README.md
@ -65,6 +65,7 @@ $ go get github.com/tockins/realize
|
|||||||
The Run command supports the following custom parameters:
|
The Run command supports the following custom parameters:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
--name="name" -> Run by name on existing configuration
|
||||||
--path="realize/server" -> Custom Path, if not specified takes the working directory name
|
--path="realize/server" -> Custom Path, if not specified takes the working directory name
|
||||||
--build -> Enable go build
|
--build -> Enable go build
|
||||||
--no-run -> Disable go run
|
--no-run -> Disable go run
|
||||||
@ -146,33 +147,41 @@ $ go get github.com/tockins/realize
|
|||||||
logs: logs.log
|
logs: logs.log
|
||||||
errors: errors.log
|
errors: errors.log
|
||||||
server:
|
server:
|
||||||
status: true // server status
|
status: false // server status
|
||||||
open: false // auto open in browser on start
|
open: false // open browser at start
|
||||||
host: localhost // server host
|
host: localhost // server host
|
||||||
port: 5001 // server port
|
port: 5001 // server port
|
||||||
projects:
|
projects:
|
||||||
- name: realize
|
- name: coin
|
||||||
path: . // project path
|
path: coin // project path
|
||||||
|
commands:
|
||||||
|
vet: true
|
||||||
fmt: true
|
fmt: true
|
||||||
generate: false
|
|
||||||
test: false
|
test: false
|
||||||
bin: true
|
generate: false
|
||||||
build: false
|
bin:
|
||||||
run: false
|
status: true
|
||||||
params: // additional params
|
build:
|
||||||
|
status: false
|
||||||
|
run: true
|
||||||
|
args:
|
||||||
- --myarg
|
- --myarg
|
||||||
watcher:
|
watcher:
|
||||||
preview: false // wached files preview
|
preview: false // watched files preview
|
||||||
paths: // paths to watch
|
paths: // watched paths
|
||||||
- /
|
- /
|
||||||
ignore_paths: // paths to ignore
|
ignore_paths: // ignored paths
|
||||||
- vendor
|
- vendor
|
||||||
exts: // exts to watch
|
exts: // watched extensions
|
||||||
- .go
|
- .go
|
||||||
scripts: // custom commands after/before
|
scripts:
|
||||||
- type: after // type after/before
|
- type: before // type
|
||||||
command: go run mycmd after // command
|
command: ./ls -l // command
|
||||||
path: "" // run from a custom path or from the working dir
|
changed: true // relaunch when a file changes
|
||||||
|
startuo: true // launch at start
|
||||||
|
- type: after
|
||||||
|
command: ./ls
|
||||||
|
changed: true
|
||||||
streams: // enable/disable streams
|
streams: // enable/disable streams
|
||||||
cli_out: true
|
cli_out: true
|
||||||
file_out: false
|
file_out: false
|
||||||
@ -180,49 +189,6 @@ $ go get github.com/tockins/realize
|
|||||||
file_err: false
|
file_err: false
|
||||||
|
|
||||||
```
|
```
|
||||||
This is the configuration used for develop realize
|
|
||||||
|
|
||||||
```
|
|
||||||
settings:
|
|
||||||
resources:
|
|
||||||
outputs: outputs.log
|
|
||||||
logs: logs.log
|
|
||||||
errors: errors.log
|
|
||||||
server:
|
|
||||||
status: false
|
|
||||||
open: false
|
|
||||||
host: localhost
|
|
||||||
port: 5001
|
|
||||||
projects:
|
|
||||||
- name: realize
|
|
||||||
path: /Users/alessio/go/src/github.com/tockins/realize
|
|
||||||
fmt: true
|
|
||||||
generate: false
|
|
||||||
test: false
|
|
||||||
bin: true
|
|
||||||
build: false
|
|
||||||
run: false
|
|
||||||
watcher:
|
|
||||||
preview: false
|
|
||||||
paths:
|
|
||||||
- /
|
|
||||||
ignore_paths:
|
|
||||||
- server/assets
|
|
||||||
exts:
|
|
||||||
- .go
|
|
||||||
scripts:
|
|
||||||
- type: before
|
|
||||||
command: go-bindata -pkg="server" assets/...
|
|
||||||
path: server
|
|
||||||
- type: after
|
|
||||||
command: go-bindata -pkg="server" assets/...
|
|
||||||
path: server
|
|
||||||
streams:
|
|
||||||
cli_out: true
|
|
||||||
file_out: false
|
|
||||||
file_log: false
|
|
||||||
file_err: false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
###### Support us and suggest an improvement
|
###### Support us and suggest an improvement
|
||||||
|
Loading…
Reference in New Issue
Block a user