2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-26 23:43:22 +00:00

feat: add opt to skip processors

This commit is contained in:
sammyette 2025-04-23 18:41:14 -04:00
parent f48272bbea
commit 95a85eedd2
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
3 changed files with 10 additions and 2 deletions

View File

@ -76,3 +76,8 @@ of an exact match.
#### Default: `true`
If this is enabled, when a background job is finished,
a [notification](../notifications) will be sent.
### `processorSkipList`
#### Value: `table`
#### Default: `{}`
A table listing the names of command processors to skip.

View File

@ -15,7 +15,8 @@ The nice lil shell for {blue}Lua{reset} fanatics!
fuzzy = false,
notifyJobFinish = true,
crimmas = true,
tips = true
tips = true,
processorSkipList = {}
}
for optsName, default in pairs(defaultOpts) do

View File

@ -123,7 +123,9 @@ end
-- @param priv bool
function hilbish.runner.run(input, priv)
bait.throw('command.preprocess', input)
local input, continue = hilbish.processors.execute(input)
local input, continue = hilbish.processors.execute(input, {
skip = hilbish.opts.processorSkipList
})
if not continue then
finishExec(0, '', true)
return