summaryrefslogtreecommitdiffstats
path: root/ipfs-cli/src/command/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-cli/src/command/commands.rs')
-rw-r--r--ipfs-cli/src/command/commands.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/ipfs-cli/src/command/commands.rs b/ipfs-cli/src/command/commands.rs
index 05f787c..ffba5f2 100644
--- a/ipfs-cli/src/command/commands.rs
+++ b/ipfs-cli/src/command/commands.rs
@@ -12,7 +12,6 @@ use ipfs_api::IpfsClient;
use ipfs_api::response::CommandsResponse;
use tokio_core::reactor::Core;
-
pub fn signature<'a, 'b>() -> App<'a, 'b> {
clap_app!(
@subcommand commands =>
@@ -20,7 +19,6 @@ pub fn signature<'a, 'b>() -> App<'a, 'b> {
)
}
-
fn recursive_print_commands(cmd: CommandsResponse, stack: &mut Vec<String>) {
if cmd.subcommands.is_empty() {
println!(" {} {}", stack.join(" "), cmd.name);
@@ -37,7 +35,6 @@ fn recursive_print_commands(cmd: CommandsResponse, stack: &mut Vec<String>) {
}
}
-
pub fn handle(core: &mut Core, client: &IpfsClient) {
let commands = core.run(client.commands()).expect(EXPECTED_API);