remaning base

This commit is contained in:
Nilton Constantino
2026-01-19 08:22:43 +00:00
parent 8bedb69ca4
commit 6eb78d9ca5
19 changed files with 13 additions and 13 deletions
@@ -1,12 +1,12 @@
[package]
name = "prometeu-runtime"
name = "prometeu-runtime-desktop"
version = "0.1.0"
edition = "2024"
license.workspace = true
repository.workspace = true
[[bin]]
name = "prometeu-runtime"
name = "prometeu-runtime-desktop"
path = "src/main.rs"
[package.metadata.dist]
+2 -2
View File
@@ -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]]
+1 -1
View File
@@ -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.
+4 -4
View File
@@ -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,