use crate::pkg;
use anyhow::Result;
use clap::Parser;
#[derive(Parser)]
pub struct CreateCommand {
/// The source of the package (name, @repo/name, path to .pkg.lua, or URL)
pub source: String,
/// The application name and directory to create (defaults to package name)
pub app_name: Option<String>,
}
pub fn run(
args: CreateCommand,
yes: bool,
plugin_manager: Option<&crate::pkg::plugin::PluginManager>,
) -> Result<()> {
pkg::create::run(&args.source, args.app_name, yes, plugin_manager)
}