WIP
This commit is contained in:
@@ -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" }
|
||||
|
||||
@@ -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.
|
||||
}
|
||||
Reference in New Issue
Block a user