feat: add command.preexec hook

it provides 2 arguments: what the user typed, and the command hilbish
will execute.
pull/78/head
sammyette 2021-10-14 08:51:29 -04:00
parent 63061e3a52
commit e4833bdba9
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ func RunInput(input string) {
continue
}
}
hooks.Em.Emit("command.preexec", input, cmdString)
// First try to load input, essentially compiling to bytecode
fn, err := l.LoadString(cmdString)