From 8067f3ea70a753aa20c1946f53adb8730c6c6521 Mon Sep 17 00:00:00 2001 From: asoseil Date: Sun, 5 Nov 2017 19:28:28 +0100 Subject: [PATCH] Merge branch 'dev' of https://github.com/tockins/realize into dev # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. --- watcher.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/watcher.go b/watcher.go index ff5841f..8c5cfe7 100644 --- a/watcher.go +++ b/watcher.go @@ -190,6 +190,18 @@ func (p *Project) config(r *realize) { if len(p.Cmds.Fmt.Args) == 0 { p.Cmds.Fmt.Args = []string{"-s", "-w", "-e", "./"} } + p.tools = append(p.tools, tool{ + status: p.Cmds.Fix.Status, + cmd: replace([]string{"go fix"}, p.Cmds.Fix.Method), + options: split([]string{}, p.Cmds.Fix.Args), + name: "Fix", + }) + p.tools = append(p.tools, tool{ + status: p.Cmds.Clean.Status, + cmd: replace([]string{"go clean"}, p.Cmds.Clean.Method), + options: split([]string{}, p.Cmds.Clean.Args), + name: "Clean", + }) p.tools = append(p.tools, tool{ status: p.Cmds.Fmt.Status, cmd: replace([]string{"gofmt"}, p.Cmds.Fmt.Method),