This commit is contained in:
alessio 2017-08-24 15:22:14 +02:00
parent 9415a9d28f
commit 192dc3e179
2 changed files with 4 additions and 1 deletions

View File

@ -133,6 +133,7 @@ func main() {
return err return err
} }
} }
if err := r.Server.Start(p); err != nil { if err := r.Server.Start(p); err != nil {
return err return err
} }

View File

@ -17,6 +17,9 @@ func (h *Blueprint) Run(p *cli.Context) error {
// loop projects // loop projects
wg.Add(len(h.Projects)) wg.Add(len(h.Projects))
for k, element := range h.Projects { for k, element := range h.Projects {
if p.String("name") != "" && h.Projects[k].Name != p.String("name") {
continue
}
tools := tools{} tools := tools{}
if element.Cmds.Fmt { if element.Cmds.Fmt {
tools.Fmt = tool{ 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: ""}) 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 { if h.Legacy.Status {
go h.Projects[k].watchByPolling() go h.Projects[k].watchByPolling()
} else { } else {