Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cli #9

Merged
merged 10 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ futures-lite = "2.3.0"
futures-util = { version = "0.3.25" }
hex = "0.4"
iroh-base = "0.28.0"
iroh-blobs = { version = "0.28.0", optional = true, features = ["downloader"] }
iroh-blobs = { version = "0.28.0", optional = true, features = ["downloader", "rpc"] }
rklaehn marked this conversation as resolved.
Show resolved Hide resolved
iroh-gossip = { version = "0.28.0", optional = true }
iroh-metrics = { version = "0.28.0", default-features = false }
iroh-net = { version = "0.28.0", optional = true }
Expand Down Expand Up @@ -64,6 +64,14 @@ quic-rpc-derive = { version = "0.15", optional = true }
serde-error = { version = "0.1.3", optional = true }
portable-atomic = { version = "1.9.0", optional = true }

# cli
clap = { version = "4", features = ["derive"], optional = true }
console = { version = "0.15", optional = true }
indicatif = { version = "0.17", features = ["tokio"], optional = true }
dialoguer = { version = "0.11", optional = true }
colored = { version = "2.1", optional = true }
shellexpand = { version = "3.1", optional = true }

[dev-dependencies]
iroh-test = "0.28.0"
rand_chacha = "0.3.1"
Expand All @@ -79,11 +87,12 @@ iroh-io = "0.6.1"
testdir = "0.9.1"

[features]
default = ["net", "metrics", "engine", "rpc", "test-utils"]
default = ["net", "metrics", "engine", "rpc", "test-utils", "cli"]
rklaehn marked this conversation as resolved.
Show resolved Hide resolved
net = ["dep:iroh-net", "tokio/io-util", "dep:tokio-stream", "dep:tokio-util"]
metrics = ["iroh-metrics/metrics"]
engine = ["net", "dep:iroh-gossip", "dep:iroh-blobs", "dep:iroh-router"]
test-utils = ["iroh-net/test-utils"]
cli = ["rpc", "dep:clap", "dep:indicatif", "dep:console", "dep:colored", "dep:dialoguer", "dep:shellexpand"]
rpc = [
"engine",
"dep:nested_enum_utils",
Expand All @@ -92,6 +101,9 @@ rpc = [
"dep:serde-error",
"dep:portable-atomic",
]
dialoguer = ["dep:dialoguer"]
colored = ["dep:colored"]
shellexpand = ["dep:shellexpand"]
rklaehn marked this conversation as resolved.
Show resolved Hide resolved

[package.metadata.docs.rs]
all-features = true
Expand Down
Loading
Loading