mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	docs: add more docs for runner mode interface
This commit is contained in:
		
							parent
							
								
									3636efe7f8
								
							
						
					
					
						commit
						bc15da2f1a
					
				| @ -31,3 +31,10 @@ and also provides the sh and Lua runner functions that Hilbish itself uses. | ||||
| A runner function is expected to return 2 values: the exit code, and an error. | ||||
| The exit code has to be a number, it will be 0 otherwise and the error can be | ||||
| `nil` to indicate no error. | ||||
| 
 | ||||
| ## Functions | ||||
| These are the functions for the `hilbish.runner` interface | ||||
| 
 | ||||
| + setMode(mode) > The same as `hilbish.runnerMode` | ||||
| + sh(input) -> code, err > Runs `input` in Hilbish's sh interpreter | ||||
| + lua(input) -> code, err > Evals `input` as Lua code | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user