patagia-control/agent/src/main.rs

25 lines
564 B
Rust
Raw Normal View History

2024-11-23 19:57:17 +01:00
use anyhow::Result;
use clap::Parser;
use tokio::time::{sleep, Duration};
use tracing_subscriber::prelude::*;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Cli {}
#[tokio::main]
async fn main() -> Result<()> {
let _args = Cli::parse();
let fmt_layer = tracing_subscriber::fmt::layer();
tracing_subscriber::registry()
.with(tracing_subscriber::EnvFilter::from_default_env())
.with(fmt_layer)
.init();
tracing::info!("Patagia Agent");
sleep(Duration::from_secs(3)).await;
Ok(())
}