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.
This commit is contained in:
parent
40d34df126
commit
8067f3ea70
12
watcher.go
12
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),
|
||||
|
|
Loading…
Reference in New Issue