From 401a56a4c68b588d26958057e049b6d6c9de75c9 Mon Sep 17 00:00:00 2001 From: bQUARKz Date: Mon, 20 Apr 2026 19:13:32 +0100 Subject: [PATCH] CLI cleanup --- crates/tools/prometeu-cli/src/main.rs | 44 --------------------------- 1 file changed, 44 deletions(-) diff --git a/crates/tools/prometeu-cli/src/main.rs b/crates/tools/prometeu-cli/src/main.rs index a69c1124..8cbf6caf 100644 --- a/crates/tools/prometeu-cli/src/main.rs +++ b/crates/tools/prometeu-cli/src/main.rs @@ -33,25 +33,6 @@ enum Commands { #[arg(long, default_value_t = 7777)] port: u16, }, - /// Compiles a source project into a cartridge directory with `program.pbx`. - Build { - /// Project source directory. - project_dir: String, - - /// Whether to explain the dependency resolution process. - #[arg(long)] - explain_deps: bool, - }, - /// Packages a cartridge directory into a distributable .pmc file. - Pack { - /// Cartridge directory. - cart_dir: String, - }, - /// Diagnostic commands to verify project or cartridge integrity. - Verify { - #[command(subcommand)] - target: VerifyCommands, - }, } #[derive(Subcommand)] @@ -94,26 +75,6 @@ fn main() { &["--debug", &cart, "--port", &port.to_string()], ); } - Some(Commands::Build { project_dir, explain_deps }) => { - let mut args = vec!["build", &project_dir]; - if explain_deps { - args.push("--explain-deps"); - } - dispatch(&exe_dir, "prometeuc", &args); - } - Some(Commands::Pack { .. }) => { - not_implemented("pack", "prometeup"); - } - Some(Commands::Verify { target }) => match target { - VerifyCommands::C { project_dir, explain_deps } => { - let mut args = vec!["verify", &project_dir]; - if explain_deps { - args.push("--explain-deps"); - } - dispatch(&exe_dir, "prometeuc", &args); - } - VerifyCommands::P { .. } => not_implemented("verify p", "prometeup"), - }, None => { use clap::CommandFactory; Cli::command().print_help().unwrap(); @@ -172,11 +133,6 @@ fn execute_bin(bin_path: &Path, args: &[&str]) { } } -fn not_implemented(cmd: &str, _bin_name: &str) { - eprintln!("prometeu: command '{}' is not yet available in this distribution", cmd); - std::process::exit(1); -} - fn child_exit_code(status: ExitStatus) -> Result { status.code().ok_or("child process terminated without a numeric exit code") }