From 3b0ae64d02fd838a3a59d827d3fa7a3d162904a7 Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 19 Jun 2017 13:28:21 +0200 Subject: [PATCH 1/2] config example updated --- README.md | 67 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index c5420a5..71a7e2f 100644 --- a/README.md +++ b/README.md @@ -184,44 +184,55 @@ $ go get github.com/tockins/realize ``` settings: - resources: + legacy: + status: true // legacy watch status + interval: 10s // polling interval + resources: // files names related to streams outputs: outputs.log logs: logs.log errors: errors.log server: - status: false - open: false - host: localhost - port: 5001 + status: false // server status + open: false // open browser at start + host: localhost // server host + port: 5001 // server port projects: - - name: realize - path: /Users/alessio/go/src/github.com/tockins/realize - fmt: true - generate: false - test: false - bin: true - build: false - run: false + - name: coin + path: coin // project path + commands: + vet: true + fmt: true + test: false + generate: false + bin: + status: true + build: + status: false + run: true + args: + - --myarg watcher: - preview: false - paths: + preview: false // watched files preview + paths: // watched paths - / - ignore_paths: - - server/assets - exts: + ignore_paths: // ignored paths + - vendor + exts: // watched extensions - .go scripts: - - type: before - command: go-bindata -pkg="server" assets/... - path: server + - type: before // type + command: ./ls -l // command + changed: true // relaunch when a file changes + startuo: true // launch at start - type: after - command: go-bindata -pkg="server" assets/... - path: server - streams: - cli_out: true - file_out: false - file_log: false - file_err: false + command: ./ls + changed: true + streams: // enable/disable streams + cli_out: true + file_out: false + file_log: false + file_err: false + ``` From 554fc3976b7a735cbd8246cbe99fbb3300d90934 Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 19 Jun 2017 13:29:47 +0200 Subject: [PATCH 2/2] doc updated --- README.md | 47 +---------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/README.md b/README.md index 71a7e2f..3b87ff3 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ $ go get github.com/tockins/realize 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 --build -> Enable go build --no-run -> Disable go run @@ -136,52 +137,6 @@ $ go get github.com/tockins/realize For more examples check [Realize Examples](https://github.com/tockins/realize-examples) - ``` - settings: - legacy: - status: true // legacy watch status - interval: 10s // polling interval - resources: // files names related to streams - outputs: outputs.log - logs: logs.log - errors: errors.log - server: - status: true // server status - open: false // auto open in browser on start - host: localhost // server host - port: 5001 // server port - projects: - - name: realize - path: . // project path - fmt: true - generate: false - test: false - bin: true - build: false - run: false - params: // additional params - - --myarg - watcher: - preview: false // wached files preview - paths: // paths to watch - - / - ignore_paths: // paths to ignore - - vendor - exts: // exts to watch - - .go - scripts: // custom commands after/before - - type: after // type after/before - command: go run mycmd after // command - path: "" // run from a custom path or from the working dir - streams: // enable/disable streams - cli_out: true - file_out: false - file_log: false - file_err: false - - ``` - This is the configuration used for develop realize - ``` settings: legacy: