cuddle-v2/crates/cuddle/src/main.rs
kjuulh db49af5fa2
feat: WIP setup actions
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-10-24 22:59:27 +02:00

29 lines
485 B
Rust

use cli::Cli;
use cuddle_state::Cuddle;
mod actions;
mod cli;
mod cuddle_state;
mod plan;
mod project;
mod schema_validator;
mod state;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
dotenv::dotenv().ok();
tracing_subscriber::fmt::init();
let cuddle = Cuddle::default()
.prepare_project()
.await?
.prepare_plan()
.await?
.build_state()
.await?;
Cli::new(cuddle).setup().await?.execute().await?;
Ok(())
}