fmt flag support
This commit is contained in:
parent
5bf732b331
commit
ccbfe4ea62
|
@ -47,6 +47,7 @@ func New(params *cli.Context) *Config {
|
||||||
Build: params.Bool("build"),
|
Build: params.Bool("build"),
|
||||||
Bin: boolParam(params.Bool("bin")),
|
Bin: boolParam(params.Bool("bin")),
|
||||||
Run: boolParam(params.Bool("run")),
|
Run: boolParam(params.Bool("run")),
|
||||||
|
Fmt: boolParam(params.Bool("fmt")),
|
||||||
Watcher: Watcher{
|
Watcher: Watcher{
|
||||||
Paths: watcherPaths,
|
Paths: watcherPaths,
|
||||||
Ignore: watcherIgnores,
|
Ignore: watcherIgnores,
|
||||||
|
@ -117,6 +118,7 @@ func (h *Config) Add(params *cli.Context) error {
|
||||||
Build: params.Bool("build"),
|
Build: params.Bool("build"),
|
||||||
Bin: boolParam(params.Bool("bin")),
|
Bin: boolParam(params.Bool("bin")),
|
||||||
Run: boolParam(params.Bool("run")),
|
Run: boolParam(params.Bool("run")),
|
||||||
|
Fmt: boolParam(params.Bool("fmt")),
|
||||||
Watcher: Watcher{
|
Watcher: Watcher{
|
||||||
Paths: watcherPaths,
|
Paths: watcherPaths,
|
||||||
Exts: watcherExts,
|
Exts: watcherExts,
|
||||||
|
|
Loading…
Reference in New Issue