remaning base
This commit is contained in:
@@ -10,8 +10,8 @@ name = "prometeu"
|
||||
path = "src/main.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "prometeu-runtime"
|
||||
path = "../prometeu-runtime/src/main.rs"
|
||||
name = "prometeu-runtime-desktop"
|
||||
path = "../prometeu-runtime-desktop/src/main.rs"
|
||||
|
||||
# Future binaries (commented)
|
||||
# [[bin]]
|
||||
|
||||
@@ -11,4 +11,4 @@ The `prometeu` binary acts as the unified front-end for the ecosystem. It does n
|
||||
|
||||
## How it works
|
||||
|
||||
The dispatcher locates sibling binaries (`prometeu-runtime`, `prometeuc`, etc.) in the same directory where it is installed. It inherits `stdin`, `stdout`, and `stderr`, and propagates the exit code of the called process.
|
||||
The dispatcher locates sibling binaries (`prometeu-runtime-desktop`, `prometeuc`, etc.) in the same directory where it is installed. It inherits `stdin`, `stdout`, and `stderr`, and propagates the exit code of the called process.
|
||||
|
||||
@@ -8,7 +8,7 @@ use std::process::Command;
|
||||
/// 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-runtime` or `prometeuc`.
|
||||
/// components like `prometeu-runtime-desktop` or `prometeuc`.
|
||||
#[derive(Parser)]
|
||||
#[command(name = "prometeu")]
|
||||
#[command(about = "Dispatcher for the Prometeu ecosystem", long_about = None)]
|
||||
@@ -77,12 +77,12 @@ fn main() {
|
||||
|
||||
match cli.command {
|
||||
Some(Commands::Run { cart }) => {
|
||||
dispatch(&exe_dir, "prometeu-runtime", &["--run", &cart]);
|
||||
dispatch(&exe_dir, "prometeu-runtime-desktop", &["--run", &cart]);
|
||||
}
|
||||
Some(Commands::Debug { cart, port }) => {
|
||||
dispatch(
|
||||
&exe_dir,
|
||||
"prometeu-runtime",
|
||||
"prometeu-runtime-desktop",
|
||||
&["--debug", &cart, "--port", &port.to_string()],
|
||||
);
|
||||
}
|
||||
@@ -119,7 +119,7 @@ fn dispatch(exe_dir: &Path, bin_name: &str, args: &[&str]) {
|
||||
eprintln!(
|
||||
"prometeu: command '{}' is not yet available in this distribution",
|
||||
match bin_name {
|
||||
"prometeu-runtime" => "run/debug",
|
||||
"prometeu-runtime-desktop" => "run/debug",
|
||||
"prometeuc" => "build/verify c",
|
||||
"prometeup" => "pack/verify p",
|
||||
_ => bin_name,
|
||||
|
||||
Reference in New Issue
Block a user