Skip to main content

run

Function run 

Source
pub async fn run()
Expand description

Main application entry point

This function serves as the application bootstrap, handling:

  1. CLI argument parsing (delegated to presentation layer)
  2. Logging initialization using LoggingConfig
  3. Service container creation for dependency injection
  4. Command execution (delegated to presentation layer)
  5. Error handling and exit code management

ยงPanics

This function will panic if:

  • Log directory cannot be created (filesystem permissions issue)
  • Logging initialization fails (usually means it was already initialized)

Both panics are intentional as logging is critical for observability.