harmony mini cli #8

Closed
opened 2025-04-08 18:20:11 +00:00 by johnride · 0 comments
Owner

Create a simple cli to help running scores easily.

It will be a new crate that can be initialized by passing it a Maestro like the TUI :

fn main() {
  // initialize maestro, register scores, etc

  harmony_cli::init(maestro).await.unwrap()
}

And then can be used from the command line like so :

cargo run -p example-tui --run SuccessScore # Run SuccessScore when there is only one matching the name currently registered in the maestro. If more than one, display the list of matching scores with help on how to call the appropriate one
cargo run -p example-tui --run SuccessScore -i # List the scores matching and interactively select the one to launch
cargo run -p example-tui --run SuccessScore --all # Run all scores with name containing SuccessScore
cargo run -p example-tui --run SuccessScore[1] # Run the first score matching
Create a simple cli to help running scores easily. It will be a new crate that can be initialized by passing it a Maestro like the TUI : ```rust fn main() { // initialize maestro, register scores, etc harmony_cli::init(maestro).await.unwrap() } ``` And then can be used from the command line like so : ``` bash cargo run -p example-tui --run SuccessScore # Run SuccessScore when there is only one matching the name currently registered in the maestro. If more than one, display the list of matching scores with help on how to call the appropriate one cargo run -p example-tui --run SuccessScore -i # List the scores matching and interactively select the one to launch cargo run -p example-tui --run SuccessScore --all # Run all scores with name containing SuccessScore cargo run -p example-tui --run SuccessScore[1] # Run the first score matching ```
taha was assigned by johnride 2025-04-08 18:20:11 +00:00
taha added reference harmony-cli 2025-04-11 20:40:53 +00:00
taha referenced this issue from a commit 2025-04-19 01:13:41 +00:00
taha closed this issue 2025-04-19 01:14:53 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: NationTech/harmony#8
No description provided.