Skip to content

Commit 2a42d0a

Browse files
author
Dave Horner
committed
feat(cli): add command-line support and update dependency configuration
- Introduce CLI argument parsing with clap in main.rs, enabling host, port, API, and password options. - Validate the critical 'host' field and print help when missing. - Update Cargo.toml and Cargo.lock with new dependencies (e.g., clap, anstream, etc.) to support CLI functionality. - Revise README.md to reflect the new cmdline client usage. - Remove config.toml to streamline configuration via CLI.
1 parent c6476d1 commit 2a42d0a

File tree

13 files changed

+404
-52
lines changed

13 files changed

+404
-52
lines changed

Cargo.lock

Lines changed: 253 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ lua = ["mlua"]
1616
[dependencies]
1717
anyhow = "1.0.95"
1818
base64 = "0.22.1"
19+
clap = { version = "4.5.31", features = ["derive"] }
1920
config = "0.15.8"
2021
dotenv = "0.15.0"
2122
reqwest = { version = "0.12.12", features = ["cookies", "json"] }

0 commit comments

Comments
 (0)