adjust and fix names

This commit is contained in:
bQUARKz 2026-01-19 18:08:32 +00:00 committed by Nilton Constantino
parent b68f7d1146
commit fca5de7326
No known key found for this signature in database

View File

@ -77,12 +77,12 @@ fn main() {
match cli.command {
Some(Commands::Run { cart }) => {
dispatch(&exe_dir, "prometeu-runtime-desktop", &["--run", &cart]);
dispatch(&exe_dir, "prometeu-runtime", &["--run", &cart]);
}
Some(Commands::Debug { cart, port }) => {
dispatch(
&exe_dir,
"prometeu-runtime-desktop",
"prometeu-runtime",
&["--debug", &cart, "--port", &port.to_string()],
);
}
@ -117,13 +117,13 @@ fn dispatch(exe_dir: &Path, bin_name: &str, args: &[&str]) {
if !bin_path.exists() {
eprintln!(
"prometeu: command '{}' is not yet available in this distribution",
"prometeu: command '{}' is not yet available in this distribution on {}",
match bin_name {
"prometeu-runtime-desktop" => "run/debug",
"prometeuc" => "build/verify c",
"prometeup" => "pack/verify p",
_ => bin_name,
}
}, exe_dir.display()
);
std::process::exit(1);
}