Skip to content

Commit

Permalink
use cli logic from iroh-gossip crate
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Nov 18, 2024
1 parent cd18962 commit a3cfb8a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 132 deletions.
4 changes: 3 additions & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ iroh-metrics = { path = "./iroh-metrics" }
iroh-test = { path = "./iroh-test" }
iroh-router = { path = "./iroh-router" }

iroh-gossip = { git = "https://github.com/n0-computer/iroh-gossip", branch = "main" }
iroh-gossip = { git = "https://github.com/n0-computer/iroh-gossip", branch = "cli" }
iroh-docs = { git = "https://github.com/n0-computer/iroh-docs", branch = "cli" }
iroh-blobs = { git = "https://github.com/n0-computer/iroh-blobs", branch = "cli" }
2 changes: 1 addition & 1 deletion iroh-cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ use crate::config::NodeConfig;

pub(crate) mod console;
pub(crate) mod doctor;
pub(crate) mod gossip;
pub(crate) mod net;
pub(crate) mod rpc;
pub(crate) mod start;
pub use iroh_blobs::{cli as blobs, cli::tags};
pub use iroh_docs::{cli as docs, cli::authors};
pub use iroh_gossip::cli as gossip;

/// iroh is a tool for building distributed apps.
///
Expand Down
128 changes: 0 additions & 128 deletions iroh-cli/src/commands/gossip.rs

This file was deleted.

2 changes: 1 addition & 1 deletion iroh-cli/src/commands/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl RpcCommands {
Self::Docs { command } => command.run(&iroh.docs(), &iroh.blobs(), env).await,
Self::Authors { command } => command.run(&iroh.authors(), env).await,
Self::Tags { command } => command.run(&iroh.tags()).await,
Self::Gossip { command } => command.run(iroh).await,
Self::Gossip { command } => command.run(&iroh.gossip()).await,
Self::Stats => {
let stats = iroh.stats().await?;
for (name, details) in stats.iter() {
Expand Down

0 comments on commit a3cfb8a

Please sign in to comment.