From 61fcefffe550e35308e167667f206fa025eb4aeb Mon Sep 17 00:00:00 2001 From: alessio Date: Thu, 31 Aug 2017 09:54:59 +0200 Subject: [PATCH] fmt --- realize.go | 8 ++++---- watcher/cmd.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/realize.go b/realize.go index 4787066..5275093 100644 --- a/realize.go +++ b/realize.go @@ -118,7 +118,7 @@ func main() { if err := r.Record(r); err != nil { return err } - fmt.Fprintln(style.Output,prefix(style.Green.Bold("Your project was successfully added."))) + fmt.Fprintln(style.Output, prefix(style.Green.Bold("Your project was successfully added."))) return nil }, Before: before, @@ -790,7 +790,7 @@ func main() { if err := r.Record(r); err != nil { return err } - fmt.Fprintln(style.Output,prefix(style.Green.Bold("Your configuration was successful."))) + fmt.Fprintln(style.Output, prefix(style.Green.Bold("Your configuration was successful."))) return nil }, Before: before, @@ -810,7 +810,7 @@ func main() { if err := r.Record(r); err != nil { return err } - fmt.Fprintln(style.Output,prefix(style.Green.Bold("Your project was successfully removed."))) + fmt.Fprintln(style.Output, prefix(style.Green.Bold("Your project was successfully removed."))) return nil }, Before: before, @@ -834,7 +834,7 @@ func main() { if err := r.Settings.Remove(directory); err != nil { return err } - fmt.Fprintln(style.Output,prefix(style.Green.Bold("Realize folder successfully removed."))) + fmt.Fprintln(style.Output, prefix(style.Green.Bold("Realize folder successfully removed."))) return nil }, Before: before, diff --git a/watcher/cmd.go b/watcher/cmd.go index b3bdd26..a41b4f2 100644 --- a/watcher/cmd.go +++ b/watcher/cmd.go @@ -6,9 +6,9 @@ import ( "github.com/tockins/realize/style" cli "gopkg.in/urfave/cli.v2" "os" + "path/filepath" "strings" "time" - "path/filepath" ) // Run launches the toolchain for each project @@ -69,7 +69,7 @@ func (h *Blueprint) Run(p *cli.Context) error { // base path of the project wd, err := os.Getwd() - if err != nil{ + if err != nil { return err } if element.path == "." || element.path == "/" {