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:
parent
f48272bbea
commit
95a85eedd2
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user