Skip to content

Commit

Permalink
Rename "send" command to "call" (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyoung authored Sep 11, 2019
1 parent 5e9d265 commit 7616fb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dfx/src/commands/send.rs → dfx/src/commands/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const HOST_ARG: &str = "host";
const NAME_ARG: &str = "name";

pub fn construct() -> App<'static, 'static> {
SubCommand::with_name("send")
.about(r#"Send a "Hello World" request to the canister 42."#)
SubCommand::with_name("call")
.about(r#"Call a "greet" function on the canister with ID 42."#)
.arg(
Arg::with_name(HOST_ARG)
.help("The host (with port) to send the query to.")
.help("The host (with port) to send the request to.")
.required(true),
)
.arg(
Expand Down
4 changes: 2 additions & 2 deletions dfx/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::lib::error::DfxResult;
use clap::ArgMatches;

mod build;
mod send;
mod call;
mod start;

pub type CliExecFn<T> = fn(&T, &ArgMatches<'_>) -> DfxResult;
Expand Down Expand Up @@ -37,7 +37,7 @@ where
{
vec![
CliCommand::new(build::construct(), build::exec),
CliCommand::new(send::construct(), send::exec),
CliCommand::new(call::construct(), call::exec),
CliCommand::new(start::construct(), start::exec),
]
}

0 comments on commit 7616fb8

Please sign in to comment.