packc/cli/gui/mod.rs
1#![forbid(unsafe_code)]
2
3use anyhow::Result;
4use clap::Subcommand;
5
6pub mod loveable_convert;
7
8#[derive(Debug, Subcommand)]
9pub enum GuiCommand {
10 /// Convert a Loveable-generated repo or build output into a GUI .gtpack
11 #[command(name = "loveable-convert")]
12 LoveableConvert(loveable_convert::Args),
13}
14
15pub async fn handle(
16 cmd: GuiCommand,
17 json: bool,
18 runtime: &crate::runtime::RuntimeContext,
19) -> Result<()> {
20 match cmd {
21 GuiCommand::LoveableConvert(args) => loveable_convert::handle(args, json, runtime).await,
22 }
23}