Skip to content

Commit b696dba

Browse files
committed
leaf subcommands should use an exec name and not dispatch
1 parent f5d73d3 commit b696dba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/icp-cli/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub enum Subcmd {
1919

2020
pub async fn dispatch(cli: Cli) -> Result<(), DispatchError> {
2121
match cli.subcommand {
22-
Subcmd::Build(opts) => build::dispatch(opts).await?,
22+
Subcmd::Build(opts) => build::exec(opts).await?,
2323
Subcmd::Network(opts) => network::dispatch(opts).await?,
2424
}
2525
Ok(())

bin/icp-cli/src/commands/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use snafu::Snafu;
77
#[derive(Parser, Debug)]
88
pub struct Cmd;
99

10-
pub async fn dispatch(_cmd: Cmd) -> Result<(), BuildCommandError> {
10+
pub async fn exec(_cmd: Cmd) -> Result<(), BuildCommandError> {
1111
// Project
1212
let pd = ProjectDirectory::find()?.ok_or(BuildCommandError::ProjectNotFound)?;
1313

0 commit comments

Comments
 (0)