Files
tkmind_go/crates/goose-cli/src/main.rs
T
2026-02-14 01:03:11 +00:00

19 lines
449 B
Rust

use anyhow::Result;
use goose_cli::cli::cli;
#[tokio::main]
async fn main() -> Result<()> {
if let Err(e) = goose_cli::logging::setup_logging(None) {
eprintln!("Warning: Failed to initialize logging: {}", e);
}
let result = cli().await;
if goose::otel::otlp::is_otlp_initialized() {
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
goose::otel::otlp::shutdown_otlp();
}
result
}