Closed aaravm closed 3 weeks ago
This pull request adds a new CLI functionality for managing tasks using the GA4GH Task Execution Service (TES) API. The main changes include the implementation of a command-line interface with various subcommands for creating, listing, getting, canceling tasks, and checking task status. The code also introduces configuration management and error handling.
Files | Changes |
---|---|
cli/src/main.rs |
Implemented a new command-line interface using the clap crate for parsing command-line arguments |
cli/src/main.rs |
Added subcommands for TES operations: create, list, get, status, and cancel |
cli/src/main.rs |
Implemented configuration management, including loading from a JSON file and fallback to default configuration |
cli/src/main.rs |
Added error handling and result printing for each subcommand |
cli/src/main.rs |
Integrated with the ga4gh_sdk crate for TES API interactions |
cli/src/main.rs |
Implemented automatic Funnel server startup for local development |
Hey @pavelnikonorov @uniqueg, I have refactored the code to separate config files, as suggested by you guys. I also changed the type of input in list in #38. These were the 2 suggestions given by @pavelnikonorov. Please merge this and #38.
@uniqueg
Configuration struct
method../cli/README.md
I think it's good to merge.
All proposed changes have been addressed in the PR, and I will proceed with merging it as discussed with @uniqueg.
Here, most of the code is copied #38, only getting config is added. Please merge this after #38. Also, cargo.toml is the same as #38 except, anyhow crate is added.
Summary by Sourcery
Add a new CLI tool for managing tasks with subcommands for creating, listing, getting, checking status, and canceling tasks. Include functionality to read configuration from a JSON file and update the documentation with usage examples.
New Features:
Enhancements:
Documentation: