Skip to main content

call_command

Function call_command 

Source
pub fn call_command(
    command: Command,
    canister: &OsStr,
    method: &OsStr,
    arguments: CallArguments<'_>,
    mode: CallMode,
) -> Command
Expand description

Extend a caller-configured executable with an ICP canister call.

The base must not already contain the canister subcommand. Executable, native arguments, environment, working directory and standard I/O are retained. Callers append Candid interface, response format and target selection themselves.