Expand description
Main entry point for the server cli Commands This is where commands are defined properly, and where command functions are called.
Modulesยง
- db
- This file includes direct server commands that interact or are about the surreal database/
- help
- Main cli file used for getting help with server commands
- server
- Main file for server related commands
Structsยง
- Admin
Session - 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 asynchronous task.
- unknown ๐
- Prints an error message for unknown commands.