parent
ca95bcf1d8
commit
245db502cc
10
app.go
10
app.go
@ -144,9 +144,13 @@ func (app *app) loop() {
|
|||||||
|
|
||||||
if gCommand != "" {
|
if gCommand != "" {
|
||||||
p := newParser(strings.NewReader(gCommand))
|
p := newParser(strings.NewReader(gCommand))
|
||||||
if e := p.parseExpr(); e != nil {
|
|
||||||
log.Printf("evaluating start command: %s", e.String())
|
for p.parse() {
|
||||||
e.eval(app, nil)
|
p.expr.eval(app, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
if p.err != nil {
|
||||||
|
app.ui.printf("%s", p.err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user