diff --git a/dfx/src/commands/send.rs b/dfx/src/commands/call.rs similarity index 90% rename from dfx/src/commands/send.rs rename to dfx/src/commands/call.rs index bddcf5e03b..ac8bf27318 100644 --- a/dfx/src/commands/send.rs +++ b/dfx/src/commands/call.rs @@ -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( diff --git a/dfx/src/commands/mod.rs b/dfx/src/commands/mod.rs index 8e99372862..4115ac457f 100644 --- a/dfx/src/commands/mod.rs +++ b/dfx/src/commands/mod.rs @@ -3,7 +3,7 @@ use crate::lib::error::DfxResult; use clap::ArgMatches; mod build; -mod send; +mod call; mod start; pub type CliExecFn = fn(&T, &ArgMatches<'_>) -> DfxResult; @@ -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), ] }