From e4833bdba9b2f7a3b73309c64a697bfa5c1d2952 Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Thu, 14 Oct 2021 08:51:29 -0400 Subject: [PATCH] feat: add command.preexec hook it provides 2 arguments: what the user typed, and the command hilbish will execute. --- shell.go | 1 + 1 file changed, 1 insertion(+) diff --git a/shell.go b/shell.go index 0ea23d5..513219b 100644 --- a/shell.go +++ b/shell.go @@ -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)