pub enum Commands<C, S>where
    C: Deploy + Clone,
    S: Subcommand + Clone + Debug,{
Show 22 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, id: bool, }, Schema { contracts: Vec<C>, }, StoreCode { contracts: Vec<C>, }, Instantiate { contracts: Vec<C>, interactive: bool, }, Migrate { contracts: Vec<C>, interactive: bool, }, SetConfig { contracts: Vec<C>, }, Execute { contract: C, }, Cw20Send { contract: C, }, Cw20Execute {}, Cw20Query {}, Cw20Instantiate {}, ExecutePayload { contract: C, payload: String, }, Custom(S), Query { contract: C, }, SetUp { contracts: Vec<C>, },
}

Variants§

§

Update

Rebuilds deploy

§

Init

Initializes deploy, adding keys, chains, and envs

§

Build

Fields

§contracts: Vec<C>

Name of the contract

Builds the contracts

§

Chain

Fields

§add: bool

Triggers dialogue to add a chain

§delete: bool

Triggers dialogue to delete a chain

Modify chains

§

Key

Fields

§add: bool

Triggers dialogue to add a key

§delete: bool

Triggers dialogue to delete a key

Modify keys

§

Contract

Fields

§add: bool

Triggers dialogue to add a contract

§delete: bool

Triggers dialogue to delete a contract

Modify contracts

§

Deploy

Fields

§contracts: Vec<C>

Name of the contract

§no_build: bool

Deploys but does not recompile first

Builds, optimizes, stores, instantiates and sets configs.

§

Env

Fields

§add: bool

Triggers dialogue to add a deployment environment

§delete: bool

Triggers dialogue to delete deployment environment

§select: bool

Triggers dialogue to select an env to activate

§id: bool

Prints the current active env id

Modify deployment environments

§

Schema

Fields

§contracts: Vec<C>

Name of the contract

Generates and imports schemas

§

StoreCode

Fields

§contracts: Vec<C>

Name of the contract

Stores code for the contracts

§

Instantiate

Fields

§contracts: Vec<C>

Name of the contract

§interactive: bool

Interactive mode

Instantiates a contract using the preprogrammed messages

§

Migrate

Fields

§contracts: Vec<C>

Name of the contract

§interactive: bool

Interactive mode

Migrates contracts

§

SetConfig

Fields

§contracts: Vec<C>

Name of the contract

Sets the config of a contract

§

Execute

Fields

§contract: C

Executes a contract

§

Cw20Send

Fields

§contract: C

Sends Cw20 tokens to a contract along with a payload

§

Cw20Execute

Fields

Executes a Cw20 message

§

Cw20Query

Fields

Queries a Cw20 contract

§

Cw20Instantiate

Fields

Instantiate a Cw20 contract

§

ExecutePayload

Fields

§contract: C
§payload: String

Executes a contract with a custom payload

§

Custom(S)

Executes a user defined command

§

Query

Fields

§contract: C

Sends a query to a contract

§

SetUp

Fields

§contracts: Vec<C>

Name of the contract

Sets up the smart contract env with executes

Trait Implementations§

source§

impl<C, S> Clone for Commands<C, S>where C: Deploy + Clone + Clone, S: Subcommand + Clone + Debug + Clone,

source§

fn clone(&self) -> Commands<C, S>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<C, S> CommandFactory for Commands<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl<C, S> Debug for Commands<C, S>where C: Deploy + Clone + Debug, S: Subcommand + Clone + Debug + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<C, S> FromArgMatches for Commands<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

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>

Assign values from ArgMatches to self.
source§

impl<C, S> Parser for Commands<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,

§

fn parse() -> Self

Parse from std::env::args_os(), exit on error
§

fn try_parse() -> Result<Self, Error<RichFormatter>>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error
§

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.
§

fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error
§

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: Deploy + Clone, S: Subcommand + Clone + Debug,

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self. Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can update self. Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto 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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<M> AsAny for Mwhere M: Any,

§

fn as_any(&self) -> &(dyn Any + 'static)

source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for Twhere T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more