errors stream fixed, fmt
This commit is contained in:
parent
369001338c
commit
272be57cab
|
@ -79,7 +79,6 @@ func (h *Blueprint) Add(p *cli.Context) error {
|
|||
Name: h.Name(p.String("name"), p.String("path")),
|
||||
Path: h.Path(p.String("path")),
|
||||
Cmds: Cmds{
|
||||
|
||||
Vet: p.Bool("vet"),
|
||||
Fmt: !p.Bool("no-fmt"),
|
||||
Test: p.Bool("test"),
|
||||
|
|
|
@ -85,11 +85,11 @@ func (p *Project) goRun(channel chan bool, runner chan bool, wr *sync.WaitGroup)
|
|||
for output.Scan() {
|
||||
text := output.Text()
|
||||
msg := fmt.Sprintln(p.pname(p.Name, 3), ":", style.Blue.Regular(text))
|
||||
if isError || isErrorText(text) {
|
||||
if isError && isErrorText(text) {
|
||||
out := BufferOut{Time: time.Now(), Text: text, Type: "Go Run"}
|
||||
p.print("error", out, msg, "")
|
||||
} else {
|
||||
out := BufferOut{Time: time.Now(), Text: text}
|
||||
out := BufferOut{Time: time.Now(), Text: text, Type: "Go Run"}
|
||||
p.print("out", out, msg, "")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue