Skip to content

Commit cdcb863

Browse files
authored
Merge pull request #14 from n0-computer/cli
feat: cli
2 parents 290eb42 + 3762164 commit cdcb863

File tree

5 files changed

+1313
-0
lines changed

5 files changed

+1313
-0
lines changed

Cargo.lock

+47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ async-channel = "2.3.1"
1818
bao-tree = { version = "0.13", features = ["tokio_fsm", "validate"], default-features = false }
1919
bytes = { version = "1.7", features = ["serde"] }
2020
chrono = "0.4.31"
21+
clap = { version = "4.5.20", features = ["derive"], optional = true }
22+
console = { version = "0.15.8", optional = true }
2123
derive_more = { version = "1.0.0", features = ["debug", "display", "deref", "deref_mut", "from", "try_into", "into"] }
2224
futures-buffered = "0.2.4"
2325
futures-lite = "2.3"
2426
futures-util = { version = "0.3.30", optional = true }
2527
genawaiter = { version = "0.99.1", features = ["futures03"] }
2628
hashlink = { version = "0.9.0", optional = true }
2729
hex = "0.4.3"
30+
indicatif = { version = "0.17.8", optional = true }
2831
iroh-base = { version = "0.28.0", features = ["redb"] }
2932
iroh-io = { version = "0.6.0", features = ["stats"] }
3033
iroh-metrics = { version = "0.28.0", default-features = false }
@@ -81,6 +84,7 @@ net_protocol = ["downloader"]
8184
fs-store = ["dep:reflink-copy", "redb", "dep:redb_v1", "dep:tempfile"]
8285
metrics = ["iroh-metrics/metrics"]
8386
redb = ["dep:redb"]
87+
cli = ["rpc", "dep:clap", "dep:indicatif", "dep:console"]
8488
rpc = ["dep:quic-rpc", "dep:quic-rpc-derive", "dep:nested_enum_utils", "dep:strum", "dep:futures-util", "dep:ref-cast", "dep:portable-atomic", "dep:walkdir", "downloader"]
8589

8690
[package.metadata.docs.rs]

0 commit comments

Comments
 (0)