Skip to main content

run

Function run 

Source
pub async fn run() -> Result<()>
Expand description

Main library entry point called from src/main.rs.

Parses CLI arguments, initialises the i18n language setting, then dispatches to the appropriate subcommand handler. Returns Ok(()) on success or propagates any anyhow::Error.

§Errors

Returns an anyhow::Error wrapping any structured crate::errors::Context7Error or runtime failure. The binary converts the error into a BSD-style exit code via crate::errors::Context7Error::exit_code.