diff --git a/realize.go b/realize.go index 0dd3846..8353be0 100644 --- a/realize.go +++ b/realize.go @@ -133,6 +133,7 @@ func main() { return err } } + if err := r.Server.Start(p); err != nil { return err } diff --git a/watcher/cmd.go b/watcher/cmd.go index 673f040..276508d 100644 --- a/watcher/cmd.go +++ b/watcher/cmd.go @@ -17,6 +17,9 @@ func (h *Blueprint) Run(p *cli.Context) error { // loop projects wg.Add(len(h.Projects)) for k, element := range h.Projects { + if p.String("name") != "" && h.Projects[k].Name != p.String("name") { + continue + } tools := tools{} if element.Cmds.Fmt { tools.Fmt = tool{ @@ -60,7 +63,6 @@ func (h *Blueprint) Run(p *cli.Context) error { h.Projects[k].Buffer.StdErr = append(h.Projects[k].Buffer.StdErr, BufferOut{Time: time.Now(), Text: err.Error(), Type: "Env error", Stream: ""}) } } - if h.Legacy.Status { go h.Projects[k].watchByPolling() } else {