use crate::cmd;
use clap::Parser;
use std::path::Path;
use tokio::fs;
#[derive(Debug, Parser)]
pub struct Opts {
#[arg(value_name = "app-name")]
pub app_name: String,
}
pub async fn run(app_name: String) -> anyhow::Result<()> {
let path = Path::new(&app_name);
fs::create_dir_all(path).await?;
cmd::init::run(Some(path), Some(app_name.clone())).await?;
Ok(())
}