mirror of https://github.com/Hilbis/Hilbish
Compare commits
2 Commits
4596159b8f
...
e4833bdba9
Author | SHA1 | Date |
---|---|---|
sammyette | e4833bdba9 | |
sammyette | 63061e3a52 |
|
@ -30,6 +30,6 @@ func (b *Bait) throw(name string, args ...interface{}) {
|
||||||
b.Em.Emit(name, args...)
|
b.Em.Emit(name, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Bait) catch(name string, catcher func(interface{})) {
|
func (b *Bait) catch(name string, catcher func(...interface{})) {
|
||||||
b.Em.On(name, catcher)
|
b.Em.On(name, catcher)
|
||||||
}
|
}
|
||||||
|
|
1
shell.go
1
shell.go
|
@ -31,6 +31,7 @@ func RunInput(input string) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
hooks.Em.Emit("command.preexec", input, cmdString)
|
||||||
|
|
||||||
// First try to load input, essentially compiling to bytecode
|
// First try to load input, essentially compiling to bytecode
|
||||||
fn, err := l.LoadString(cmdString)
|
fn, err := l.LoadString(cmdString)
|
||||||
|
|
Loading…
Reference in New Issue