2024-08-23 23:22:35 +02:00
|
|
|
mod project;
|
|
|
|
|
2024-08-23 23:21:53 +02:00
|
|
|
use project::Project;
|
2024-08-23 21:51:42 +02:00
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> anyhow::Result<()> {
|
|
|
|
dotenv::dotenv().ok();
|
|
|
|
tracing_subscriber::fmt::init();
|
|
|
|
|
2024-08-23 23:21:53 +02:00
|
|
|
Cuddle::new().await?;
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Cuddle {
|
|
|
|
project: Option<Project>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Cuddle {
|
|
|
|
pub async fn new() -> anyhow::Result<Self> {
|
|
|
|
let project = Project::from_current_path().await?;
|
2024-08-23 21:51:42 +02:00
|
|
|
|
2024-08-23 23:21:53 +02:00
|
|
|
Ok(Self { project })
|
2024-08-23 21:51:42 +02:00
|
|
|
}
|
2024-08-23 23:21:53 +02:00
|
|
|
}
|