Skip to content

Commit

Permalink
feat: Add short -w option for wait
Browse files Browse the repository at this point in the history
  • Loading branch information
PatKoperwas committed Mar 6, 2018
1 parent 359d75b commit 8abd8f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ Tychus has a few options. In most cases the defaults should be sufficient.
```yaml
-a, --app-port int port your application runs on, overwritten by ENV['PORT'] (default 3000)
-p, --proxy-port int proxy port (default 4000)
-x, --ignore stringSlice comma separated list of directories to ignore file changes in. (default node_modules,log,tmp,vendor)
--wait Wait for command to finish before proxying a request.
-x, --ignore string comma separated list of directories to ignore file changes in. (default node_modules,log,tmp,vendor)
-w, --wait Wait for command to finish before proxying a request.
-t, --timeout int timeout for proxied requests (default 10)


-h, --help help for tychus
--debug print debug output
--version version for tychus
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func init() {
rootCmd.Flags().StringSliceVarP(&ignored, "ignore", "x", []string{"node_modules", "log", "tmp", "vendor"}, "comma separated list of directories to ignore file changes in.")
rootCmd.Flags().IntVarP(&proxyPort, "proxy-port", "p", 4000, "proxy port")
rootCmd.Flags().IntVarP(&timeout, "timeout", "t", 10, "timeout for proxied requests")
rootCmd.Flags().BoolVar(&wait, "wait", false, "Wait for command to finish before proxying a request")
rootCmd.Flags().BoolVarP(&wait, "wait", "w", false, "Wait for command to finish before proxying a request")
}

func start(args []string) {
Expand Down

0 comments on commit 8abd8f7

Please sign in to comment.