Enum sugar_cli::cli::Commands

source ·
pub enum Commands {
Show 18 variants Bundlr { keypair: Option<String>, rpc_url: Option<String>, action: BundlrAction, }, Collection { command: CollectionSubcommands, }, CreateConfig { config: Option<String>, rpc_url: Option<String>, keypair: Option<String>, assets_dir: String, }, Deploy { config: String, keypair: Option<String>, rpc_url: Option<String>, cache: String, }, Freeze { command: FreezeCommand, }, Guard { command: GuardCommand, }, Hash { config: String, cache: String, compare: Option<String>, }, Launch { assets_dir: String, keypair: Option<String>, config: String, rpc_url: Option<String>, cache: String, strict: bool, skip_collection_prompt: bool, }, Mint { keypair: Option<String>, rpc_url: Option<String>, cache: String, number: Option<u64>, receiver: Option<String>, candy_machine: Option<String>, }, Airdrop { keypair: Option<String>, rpc_url: Option<String>, cache: String, candy_machine: Option<String>, airdrop_list: String, }, Reveal { keypair: Option<String>, rpc_url: Option<String>, cache: String, config: String, timeout: Option<u64>, }, Show { keypair: Option<String>, rpc_url: Option<String>, cache: String, candy_machine: Option<String>, unminted: bool, }, Sign { keypair: Option<String>, rpc_url: Option<String>, cache: String, mint: Option<String>, candy_machine_id: Option<String>, }, Update { config: String, keypair: Option<String>, rpc_url: Option<String>, cache: String, new_authority: Option<String>, candy_machine: Option<String>, }, Upload { assets_dir: String, config: String, keypair: Option<String>, rpc_url: Option<String>, cache: String, }, Validate { assets_dir: String, strict: bool, skip_collection_prompt: bool, }, Verify { keypair: Option<String>, rpc_url: Option<String>, cache: String, }, Withdraw { candy_machine: Option<String>, keypair: Option<String>, rpc_url: Option<String>, list: bool, },
}

Variants§

§

Bundlr

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

Interact with the bundlr network

§

Collection

Manage the collection on the candy machine

§

CreateConfig

Fields

§config: Option<String>

Path to the config file

§rpc_url: Option<String>

RPC Url

§keypair: Option<String>

Path to the keypair file [default: solana config or “~/.config/solana/id.json”]

§assets_dir: String

Path to the directory with the assets

Interactive process to create the config file

§

Deploy

Fields

§config: String

Path to the config file, defaults to “config.json”

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

Deploy cache items into candy machine config on-chain

§

Freeze

Fields

Manage freeze guard actions

§

Guard

Fields

Manage guards on the candy machine

§

Hash

Fields

§config: String

Path to the config file, defaults to “config.json”

§cache: String

Path to the cache file, defaults to “cache.json”

§compare: Option<String>

Compare a provided hash with a cache file to check integrity.

Generate hash of cache file for hidden settings.

§

Launch

Fields

§assets_dir: String

Path to the directory with the assets to upload

§keypair: Option<String>

Path to the keypair file [default: solana config or “~/.config/solana/id.json”]

§config: String

Path to the config file

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file

§strict: bool

Strict mode: validate against JSON metadata standard exactly

§skip_collection_prompt: bool

Skip collection validate prompt

Create a candy machine deployment from assets

§

Mint

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§number: Option<u64>

Amount of NFTs to be minted in bulk

§receiver: Option<String>

Public key of the receiver of the minted NFT, defaults to keypair

§candy_machine: Option<String>

Address of candy machine to mint from.

Mint one NFT from candy machine

§

Airdrop

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§candy_machine: Option<String>

Address of candy machine to mint from.

§airdrop_list: String

List of airdrop targets.

Airdrop NFTs from candy machine

§

Reveal

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§config: String

Path to the config file

§timeout: Option<u64>

RPC timeout to retrieve the mint list (in seconds).

Reveal the NFTs from a hidden settings candy machine

§

Show

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§candy_machine: Option<String>

Address of candy machine

§unminted: bool

Display a list of unminted indices

Show the on-chain config of an existing candy machine

§

Sign

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§mint: Option<String>

Mint id for single NFT to be signed

§candy_machine_id: Option<String>

Candy machine id.

Sign one or all NFTs from candy machine

§

Update

Fields

§config: String

Path to the config file, defaults to “config.json”

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§new_authority: Option<String>

Pubkey for the new authority

§candy_machine: Option<String>

Address of candy machine to update.

Update the candy machine config on-chain

§

Upload

Fields

§assets_dir: String

Path to the directory with the assets to upload

§config: String

Path to the config file

§keypair: Option<String>

Path to the keypair file [default: solana config or “~/.config/solana/id.json”]

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file

Upload assets to storage and creates the cache config

§

Validate

Fields

§assets_dir: String

Assets directory to upload, defaults to “assets”

§strict: bool

Strict mode: validate against JSON metadata standard exactly

§skip_collection_prompt: bool

Skip collection prompt

Validate JSON metadata files

§

Verify

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

Verify uploaded data

§

Withdraw

Fields

§candy_machine: Option<String>

Address of candy machine to withdraw funds from.

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

§rpc_url: Option<String>

RPC Url

§list: bool

List available candy machines, no withdraw performed

Withdraw funds a from candy machine account closing it

Trait Implementations§

source§

impl FromArgMatches for Commands

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 Subcommand for Commands

source§

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

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

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

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§

Blanket Implementations§

§

impl<T> AbiExample for T

§

default fn example() -> T

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self, E>

source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

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>,

const: unstable · 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · 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.
const: unstable · 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