fixed #80
This commit is contained in:
parent
9415a9d28f
commit
192dc3e179
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue