2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-27 07:53:23 +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` #### Default: `true`
If this is enabled, when a background job is finished, If this is enabled, when a background job is finished,
a [notification](../notifications) will be sent. 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, fuzzy = false,
notifyJobFinish = true, notifyJobFinish = true,
crimmas = true, crimmas = true,
tips = true tips = true,
processorSkipList = {}
} }
for optsName, default in pairs(defaultOpts) do for optsName, default in pairs(defaultOpts) do

View File

@ -123,7 +123,9 @@ end
-- @param priv bool -- @param priv bool
function hilbish.runner.run(input, priv) function hilbish.runner.run(input, priv)
bait.throw('command.preprocess', input) 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 if not continue then
finishExec(0, '', true) finishExec(0, '', true)
return return