mirror of https://github.com/Hilbis/Hilbish
fix!: make streams keys almost match sink
parent
b09be2e131
commit
3f06cbd208
6
api.go
6
api.go
|
@ -211,10 +211,10 @@ func hlrun(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
||||||
return nil, errors.New("bad argument to run (expected boolean or table, got " + tout.TypeName() + ")")
|
return nil, errors.New("bad argument to run (expected boolean or table, got " + tout.TypeName() + ")")
|
||||||
}
|
}
|
||||||
|
|
||||||
handleStream(luastreams.Get(rt.StringValue("stdout")), strms, false)
|
handleStream(luastreams.Get(rt.StringValue("out")), strms, false)
|
||||||
handleStream(luastreams.Get(rt.StringValue("stderr")), strms, true)
|
handleStream(luastreams.Get(rt.StringValue("err")), strms, true)
|
||||||
|
|
||||||
stdinstrm := luastreams.Get(rt.StringValue("stdin"))
|
stdinstrm := luastreams.Get(rt.StringValue("input"))
|
||||||
if !stdinstrm.IsNil() {
|
if !stdinstrm.IsNil() {
|
||||||
ud, ok := stdinstrm.TryUserData()
|
ud, ok := stdinstrm.TryUserData()
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue