Skip to main content

run_cli

Function run_cli 

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

CLI entry point.

Initialises tracing (honouring RUST_LOG; defaults to info) and dispatches the requested sub-command.

§Example

use stygian_graph::application::cli::run_cli;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    run_cli().await
}

§Errors

Returns anyhow::Error when the CLI encounters an invalid subcommand, a config file cannot be read or parsed, or the underlying pipeline execution fails. The anyhow wrapper is used here because CLI entry points are the only place in the workspace that may use anyhow.