fmt fixed

This commit is contained in:
asoseil 2017-10-16 22:21:58 +02:00
parent 0df1d44abf
commit 441efbf9ba
2 changed files with 2 additions and 2 deletions

2
cmd.go
View File

@ -137,7 +137,7 @@ func (r *realize) run(p *cli.Context) error {
//}
if elm.Cmds.Fmt.Status {
if len(elm.Cmds.Fmt.Args) == 0 {
elm.Cmds.Fmt.Args = []string{"-s", "-w", "-e", "./.."}
elm.Cmds.Fmt.Args = []string{"-s", "-w", "-e", "./"}
}
r.Schema[k].tools = append(r.Schema[k].tools, tool{
status: elm.Cmds.Fmt.Status,

View File

@ -90,7 +90,7 @@ type BufferOut struct {
// Watch the project
func (p *Project) watch() {
p.watcher, _ = Watcher()
p.watcher, _ = Watcher(r.Settings.Legacy.Force, r.Settings.Legacy.Interval)
stop, exit := make(chan bool), make(chan os.Signal, 2)
signal.Notify(exit, os.Interrupt, syscall.SIGTERM)
// before global commands