Enum holochain_cli_sandbox::cli::HcSandboxSubcommand [−][src]
pub enum HcSandboxSubcommand {
Generate {
app_id: InstalledAppId,
create: Create,
run: Option<Vec<u16>>,
happ: Option<PathBuf>,
},
Run(Run),
Call(Call),
List {
verbose: usize,
},
Clean,
Create(Create),
}
Expand description
The list of subcommands for hc sandbox
Variants
Generate one or more new Holochain Conductor sandbox(es) for later use.
A single app will be installed as part of this sandbox.
See the help for the <dnas>
argument below to learn how to define the app to be installed.
Fields of Generate
app_id: InstalledAppId
ID for the installed app. This is just a String to identify the app by.
create: Create
(flattened)
run: Option<Vec<u16>>
Automatically run the sandbox(es) that were created.
This is effectively a combination of hc generate
and hc run
You may optionally specify app interface ports to bind when running. This allows your UI to talk to the conductor.
For example, hc generate -r=0,9000,0
will create three app interfaces.
Or, use hc generate -r
to run without attaching any app interfaces.
This follows the same structure as hc run --ports
happ: Option<PathBuf>
A hApp bundle to install.
Run(Run)
Run conductor(s) from existing sandbox(es).
Tuple Fields of Run
0: Run
Make a call to a conductor’s admin interface.
List sandboxes found in $(pwd)/.hc
.
Fields of List
verbose: usize
Show more verbose information.
Clean (completely remove) sandboxes that are listed in the $(pwd)/.hc
file.
Create a fresh sandbox with no apps installed.
Trait Implementations
Builds the struct from clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic. Read more
Builds the struct from the command line arguments (std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program. Read more
Builds the struct from the command line arguments (std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for HcSandboxSubcommand
impl Send for HcSandboxSubcommand
impl Sync for HcSandboxSubcommand
impl Unpin for HcSandboxSubcommand
impl UnwindSafe for HcSandboxSubcommand
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more