fmt flag support

This commit is contained in:
alessio 2016-08-21 17:16:47 +02:00
parent 5bf732b331
commit ccbfe4ea62
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ func New(params *cli.Context) *Config {
Build: params.Bool("build"),
Bin: boolParam(params.Bool("bin")),
Run: boolParam(params.Bool("run")),
Fmt: boolParam(params.Bool("fmt")),
Watcher: Watcher{
Paths: watcherPaths,
Ignore: watcherIgnores,
@ -117,6 +118,7 @@ func (h *Config) Add(params *cli.Context) error {
Build: params.Bool("build"),
Bin: boolParam(params.Bool("bin")),
Run: boolParam(params.Bool("run")),
Fmt: boolParam(params.Bool("fmt")),
Watcher: Watcher{
Paths: watcherPaths,
Exts: watcherExts,