feat: harmony-cli v0.1 #8 #9

Merged
taha merged 23 commits from harmony-cli into master 2025-04-19 01:13:40 +00:00
9 changed files with 1268 additions and 382 deletions
Showing only changes of commit b7fcc66fa5 - Show all commits

View File

@@ -11,11 +11,11 @@ use harmony_tui;
#[command(version, about, long_about = None)] #[command(version, about, long_about = None)]
pub struct Args { pub struct Args {
/// Run score(s) without prompt /// Run score(s) without prompt
#[arg(short, long, default_value_t = false)] #[arg(short, long, default_value_t = false, conflicts_with = "interactive")]
yes: bool, yes: bool,
/// Filter query /// Filter query
#[arg(short, long)] #[arg(short, long, conflicts_with = "interactive")]
filter: Option<String>, filter: Option<String>,
/// Run interactive TUI or not /// Run interactive TUI or not
@@ -29,16 +29,17 @@ pub struct Args {
default_value_t = true, default_value_t = true,
default_value_if("number", ArgPredicate::IsPresent, "false"), default_value_if("number", ArgPredicate::IsPresent, "false"),
conflicts_with = "number", conflicts_with = "number",
conflicts_with = "interactive",
conflicts_with = "list" conflicts_with = "list"
)] )]
all: bool, all: bool,
/// Run nth matching, zero indexed /// Run nth matching, zero indexed
#[arg(short, long, default_value_t = 0)] #[arg(short, long, default_value_t = 0, conflicts_with = "interactive")]
number: usize, number: usize,
/// list scores, will also be affected by run filter /// list scores, will also be affected by run filter
#[arg(short, long, default_value_t = false)] #[arg(short, long, default_value_t = false, conflicts_with = "interactive")]
list: bool, list: bool,
} }