diff --git a/realize/config.go b/realize/config.go index 4f1dc3d..631d7e5 100644 --- a/realize/config.go +++ b/realize/config.go @@ -21,7 +21,7 @@ type Config struct { // NameParam check the project name presence. If empty takes the working directory name func nameParam(params *cli.Context) string { var name string - if params.String("name") == "" && params.String("path") == "/"{ + if params.String("name") == "" && params.String("path") == ""{ dir, err := os.Getwd() if err != nil { log.Fatal(Red(err)) diff --git a/realize/watcher.go b/realize/watcher.go index 962ca3c..0d474b1 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -47,7 +47,6 @@ func (h *Config) Fast(params *cli.Context) error { if params.Bool("config") { if err := h.Read(); err == nil { for _, val := range h.Projects { - fmt.Println(val) if fast.Path == val.Path { fast = val } @@ -55,7 +54,7 @@ func (h *Config) Fast(params *cli.Context) error { } } wg.Add(1) - fast.Path = "" + fast.Path = slash(fast.Path) go fast.Watching() wg.Wait() return nil