Update CLI.md
This commit is contained in:
		
							parent
							
								
									67fd691ede
								
							
						
					
					
						commit
						b53081dfc7
					
				|  | @ -86,7 +86,13 @@ In addition to listening for incoming HAP requests, HomeSpan also continuously p | ||||||
|     * 1 (all diagnostics), and  |     * 1 (all diagnostics), and  | ||||||
|     * 2 (all diagnostics plus a real-time stream of all HAP communication between HomeSpan and any connected HomeKit Controllers). |     * 2 (all diagnostics plus a real-time stream of all HAP communication between HomeSpan and any connected HomeKit Controllers). | ||||||
| 
 | 
 | ||||||
|   --- | * **?** - prints a menu of all CLI commands | ||||||
|  | 
 | ||||||
|  | ### User-Defined Commands | ||||||
|  |    | ||||||
|  | You can extend the HomeSpan CLI with custom functions using `SpanUserCommand()`.  This class allows you to assign a single-character name to any custom function that will be called when you type the '@' symbol following by the single-character name into the CLI.  For example, if you assigned the character 'K' to a custom function, you would type '@K' into the CLI to invoke it.  This allows you to use any single-character name, even if that character is already used by HomeSpan for its built-in commands.  The `SpanUserCommand` class also allows you to include a short text description of your function that will be added to the menu of commands when you type '?' into the CLI. See the the [API Reference](https://github.com/HomeSpan/HomeSpan/blob/dev/docs/Reference.md#spanusercommandchar-c-const-char-s-void-fconst-char-v) for full details.     | ||||||
|  |    | ||||||
|  | --- | ||||||
| 
 | 
 | ||||||
| [↩️](README.md) Back to the Welcome page   | [↩️](README.md) Back to the Welcome page   | ||||||
|    |    | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 HomeSpan
						HomeSpan