pub enum PackageCommand {
New {
name: String,
},
Build,
Info,
ErrMapGen {
error_prefix: Option<String>,
output_file: PathBuf,
},
Prove {
target_filter: Option<String>,
for_test: bool,
options: Option<ProverOptions>,
},
CoverageReport {
options: CoverageSummaryOptions,
},
UnitTest {
instruction_execution_bound: u64,
filter: Option<String>,
list: bool,
num_threads: usize,
report_statistics: bool,
report_storage_on_error: bool,
check_stackless_vm: bool,
verbose_mode: bool,
compute_coverage: bool,
},
BytecodeView {
interactive: bool,
package_name: Option<String>,
module_or_script_name: String,
},
}Variants
New
Fields
name: StringThe name of the package to be created.
Create a new Move package with name name at path. If path is not provided the package
will be created in the directory name.
Build
Build the package at path. If no path is provided defaults to current directory.
Info
Print address information.
ErrMapGen
Fields
error_prefix: Option<String>The prefix that all error reasons within modules will be prefixed with, e.g., “E” if all error reasons are “E_CANNOT_PERFORM_OPERATION”, “E_CANNOT_ACCESS”, etc.
output_file: PathBufThe file to serialize the generated error map to.
Generate error map for the package and its dependencies at path for use by the Move
explanation tool.
Prove
Fields
target_filter: Option<String>The target filter used to prune the modules to verify. Modules with a name that contains this string will be part of verification.
for_test: boolInternal field indicating that this prover run is for a test.
options: Option<ProverOptions>Any options passed to the prover.
Run the Move Prover on the package at path. If no path is provided defaults to current
directory. Use .. prove .. -- <options> to pass on options to the prover.
CoverageReport
Fields
options: CoverageSummaryOptionsInspect test coverage for this package. A previous test run with the --coverage flag must
have previously been run.
UnitTest
Fields
instruction_execution_bound: u64Bound the number of instructions that can be executed by any one test.
filter: Option<String>A filter string to determine which unit tests to run. A unit test will be run only if it
contains this string in its fully qualified (
list: boolList all tests
num_threads: usizeNumber of threads to use for running tests.
report_statistics: boolReport test statistics at the end of testing
report_storage_on_error: boolShow the storage state at the end of execution of a failing test
check_stackless_vm: boolUse the stackless bytecode interpreter to run the tests and cross check its results with the execution result from Move VM.
verbose_mode: boolVerbose mode
compute_coverage: boolCollect coverage information for later use with the various package coverage subcommands
Run Move unit tests in this package.
BytecodeView
Fields
interactive: boolStart a disassembled bytecode-to-source explorer
package_name: Option<String>The package name. If not provided defaults to current package modules only
module_or_script_name: StringThe name of the module or script in the package to disassemble
Disassemble the Move bytecode pointed to
Trait Implementations
sourceimpl CommandFactory for PackageCommand
impl CommandFactory for PackageCommand
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl FromArgMatches for PackageCommand
impl FromArgMatches for PackageCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl Parser for PackageCommand
impl Parser for PackageCommand
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn 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
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
sourceimpl Subcommand for PackageCommand
impl Subcommand for PackageCommand
sourcefn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether Self can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for PackageCommand
impl Send for PackageCommand
impl Sync for PackageCommand
impl Unpin for PackageCommand
impl UnwindSafe for PackageCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more