glimr/console/kernel

Glimr Console Kernel

Registers Glimr’s console commands and is the entry point to run your app’s custom console commands as well as Glimr’s default console commands.

Values

pub fn commands(
  connections: List(driver.Connection),
) -> List(command.Command)

Returns the list of internal Glimr framework commands. Commands are generic over ctx so they can be merged with user commands into a single unified list.

pub fn run(
  commands app_commands: List(command.Command),
  db_connections db_connections: List(driver.Connection),
  cache_stores cache_stores: List(driver.CacheStore),
) -> Nil

Entry point for running console commands. Merges internal Glimr commands with user-defined commands into a single list. Commands receive the user’s context and can decode GlimrContext from it if needed.

Search Document