Enum wasm_deploy::cli::Commands
source · pub enum Commands<C, S>where
C: Contract,
S: Subcommand + Clone + Debug,{
Show 20 variants
Update,
Init,
Build {
contracts: Vec<C>,
},
Chain {
add: bool,
delete: bool,
},
Key {
add: bool,
delete: bool,
},
Contract {
add: bool,
delete: bool,
},
Deploy {
contracts: Vec<C>,
no_build: bool,
},
Env {
add: bool,
delete: bool,
select: bool,
},
Schema {
contracts: Vec<C>,
},
StoreCode {
contracts: Vec<C>,
},
Instantiate {
contracts: Vec<C>,
},
Migrate {
contracts: Vec<C>,
},
SetConfig {
contracts: Vec<C>,
},
Execute {
contract: C,
},
Cw20Send {
contract: C,
},
Cw20 {},
ExecutePayload {
contract: C,
payload: String,
},
CustomCommand {
command: S,
},
Query {
contract: C,
},
SetUp {
contracts: Vec<C>,
},
}Variants§
Update
Rebuilds deploy
Init
Initializes deploy, adding keys, chains, and envs
Build
Builds the contracts
Chain
Modify chains
Key
Modify keys
Contract
Fields
Modify chains
Deploy
Builds, optimizes, stores, instantiates and sets configs. Does not run set_up
Env
Fields
Modify deployment environments
Schema
Generates and imports schemas
StoreCode
Stores code for the contracts
Instantiate
Instantiates a contract
Migrate
Migrates contracts
SetConfig
Sets the config of a contract
Execute
Fields
§
contract: CExecutes a contract
Cw20Send
Fields
§
contract: CSends Cw20 tokens to a contract along with a payload
Cw20
Fields
Executes a Cw20 message
ExecutePayload
Executes a contract with a custom payload
CustomCommand
Fields
§
command: SExecutes a user defined command
Query
Fields
§
contract: CSends a query to a contract
SetUp
Sets up the smart contract env with executes
Trait Implementations§
source§impl<C, S> Clone for Commands<C, S>where
C: Contract + Clone,
S: Subcommand + Clone + Debug + Clone,
impl<C, S> Clone for Commands<C, S>where C: Contract + Clone, S: Subcommand + Clone + Debug + Clone,
source§impl<C, S> CommandFactory for Commands<C, S>where
C: Contract,
S: Subcommand + Clone + Debug,
impl<C, S> CommandFactory for Commands<C, S>where C: Contract, S: Subcommand + Clone + Debug,
source§impl<C, S> Debug for Commands<C, S>where
C: Contract + Debug,
S: Subcommand + Clone + Debug + Debug,
impl<C, S> Debug for Commands<C, S>where C: Contract + Debug, S: Subcommand + Clone + Debug + Debug,
source§impl<C, S> FromArgMatches for Commands<C, S>where
C: Contract,
S: Subcommand + Clone + Debug,
impl<C, S> FromArgMatches for Commands<C, S>where C: Contract, S: Subcommand + Clone + Debug,
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl<C, S> Parser for Commands<C, S>where
C: Contract,
S: Subcommand + Clone + Debug,
impl<C, S> Parser for Commands<C, S>where C: Contract, S: Subcommand + Clone + Debug,
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
source§impl<C, S> Subcommand for Commands<C, S>where
C: Contract,
S: Subcommand + Clone + Debug,
impl<C, S> Subcommand for Commands<C, S>where C: Contract, S: Subcommand + Clone + Debug,
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl<C, S> RefUnwindSafe for Commands<C, S>where C: RefUnwindSafe, S: RefUnwindSafe,
impl<C, S> Send for Commands<C, S>where S: Send,
impl<C, S> Sync for Commands<C, S>where S: Sync,
impl<C, S> Unpin for Commands<C, S>where C: Unpin, S: Unpin,
impl<C, S> UnwindSafe for Commands<C, S>where C: UnwindSafe, S: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request