mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +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` | ||||
| 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. | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user