quality baseline
This commit is contained in:
@@ -1 +1,3 @@
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> { prometeu_host_desktop_winit::run() }
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
prometeu_host_desktop_winit::run()
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@ use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
|
||||
/// PROMETEU Dispatcher (CLI).
|
||||
///
|
||||
/// The main entry point for the user. This binary does not implement
|
||||
/// compilation or execution logic itself; instead, it acts as a smart
|
||||
/// front-end that locates and dispatches commands to specialized
|
||||
///
|
||||
/// The main entry point for the user. This binary does not implement
|
||||
/// compilation or execution logic itself; instead, it acts as a smart
|
||||
/// front-end that locates and dispatches commands to specialized
|
||||
/// components like `prometeu-host-desktop-winit` or `prometeu-build-pipeline`.
|
||||
#[derive(Parser)]
|
||||
#[command(name = "prometeu")]
|
||||
@@ -141,7 +141,8 @@ fn dispatch(exe_dir: &Path, bin_name: &str, args: &[&str]) {
|
||||
"prometeuc" => "build/verify c",
|
||||
"prometeup" => "pack/verify p",
|
||||
_ => bin_name,
|
||||
}, exe_dir.display()
|
||||
},
|
||||
exe_dir.display()
|
||||
);
|
||||
std::process::exit(1);
|
||||
}
|
||||
@@ -168,9 +169,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
|
||||
);
|
||||
eprintln!("prometeu: command '{}' is not yet available in this distribution", cmd);
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user