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ยง

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ยง

AdminSession
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.