Package workstation tools, reuse emulator sessions, and derive build versions

This commit is contained in:
2026-09-23 03:45:48 +08:00
parent 6bfcce8070
commit f5d9f96409
79 changed files with 878 additions and 132 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
[package]
name = "fds-cli"
version = "0.1.0"
version.workspace = true
build = "../../tools/version-build.rs"
edition = "2024"
license = "MIT"
description = "FDS system and cartridge command interface"
+4 -4
View File
@@ -12,10 +12,10 @@ pub struct Cli {
#[derive(Debug, Subcommand)]
pub enum Applet {
#[command(version, about = "FDS/OS system and cartridge control")]
#[command(version = env!("FDS_BUILD_VERSION"), about = "FDS/OS system and cartridge control")]
Fds(FdsArgs),
/// Inspect a bay, image, or cartridge manifest.
#[command(version)]
#[command(version = env!("FDS_BUILD_VERSION"))]
FdsInspect {
#[arg(long, global = true)]
json: bool,
@@ -23,7 +23,7 @@ pub enum Applet {
args: InspectArgs,
},
/// Unmount a cartridge before removal.
#[command(version)]
#[command(version = env!("FDS_BUILD_VERSION"))]
FdsEject {
#[arg(long, global = true)]
json: bool,
@@ -31,7 +31,7 @@ pub enum Applet {
args: BayArgs,
},
/// Prepare native shutdown or inspect its status.
#[command(version)]
#[command(version = env!("FDS_BUILD_VERSION"))]
FdsPower {
#[arg(long, global = true)]
json: bool,
+1 -1
View File
@@ -16,7 +16,7 @@ struct Invocation {
#[derive(Parser)]
#[command(
name = "fds-program",
version,
version = env!("FDS_BUILD_VERSION"),
disable_help_subcommand = true,
about = "Run a published cartridge command in the foreground"
)]