This commit is contained in:
2025-04-10 12:39:16 -04:00
committed by taha
parent 5874ea3963
commit 20a8f12160
3 changed files with 42 additions and 3 deletions

View File

@@ -6,4 +6,5 @@ readme.workspace = true
license.workspace = true
[dependencies]
clap = "4.5.35"
clap = { version = "4.5.35", features = ["derive"] }
harmony = { path = "../harmony" }

View File

@@ -1,3 +1,27 @@
fn main() {
println!("Hello, world!");
use clap::Parser;
use harmony;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Args {
/// Name of score to run
#[arg(short, long)]
run: String,
/// Run interactive or not
#[arg(short, long, default_value_t = false)]
interactive: bool,
/// Run all or first
#[arg(short, long, default_value_t = false)]
all: bool,
/// Run nth matching
#[arg(short, long, default_value_t = 1)]
number: u8,
}
#[harmony::main]
pub async fn main(maestro: harmony::maestro::Maestro) {
maestro.
}