Skip to main content

Module cli

Module cli 

Source
Expand description

Main entry point for the server cli Commands This is where commands are defined properly, and where command functions are called.

Modulesยง

config
This module contains the functions for the config command in the CLI.
help
Main cli file used for getting help with server commands
server

Macrosยง

config_match_arms ๐Ÿ”’

Structsยง

Command ๐Ÿ”’

Constantsยง

SESSION_TIMEOUT_MINS ๐Ÿ”’

Functionsยง

dispatch ๐Ÿ”’
Dispatches the parsed command to the appropriate handler function.
parse ๐Ÿ”’
Parses a command string into a Command struct.
require_admin
Checks if a command required admin privileges.
spawn_cli
Spawns the CLI in a separate blocking thread.
unknown ๐Ÿ”’
Prints an error message for unknown commands.