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

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
Call(Call)

Make a call to a conductor’s admin interface.

Tuple Fields of Call

0: Call
List

List sandboxes found in $(pwd)/.hc.

Fields of List

verbose: usize

Show more verbose information.

Clean

Clean (completely remove) sandboxes that are listed in the $(pwd)/.hc file.

Create(Create)

Create a fresh sandbox with no apps installed.

Tuple Fields of Create

0: Create

Trait Implementations

Formats the value using the given formatter. Read more

Returns clap::App corresponding to the struct.

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

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

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

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

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

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

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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