Enum holochain_cli_bundle::HcAppBundle [−][src]
pub enum HcAppBundle {
Init {
path: PathBuf,
},
Pack {
path: PathBuf,
output: Option<PathBuf>,
},
Unpack {
path: PathBuf,
output: Option<PathBuf>,
force: bool,
},
}
Expand description
Work with Holochain hApp bundles
Variants
Create a new, empty Holochain app (hApp) working directory and create a new
sample happ.yaml
manifest inside.
Fields of Init
path: PathBuf
The path to create the working directory
Pack into the [name].happ
bundle according to the happ.yaml
manifest,
found inside the working directory. The [name]
is taken from the name
property of the manifest file.
e.g.:
$ hc app pack ./some/directory/foo
creates a file ./some/directory/foo/[name].happ
, based on
./some/directory/foo/happ.yaml
Fields of Pack
Unpack parts of the .happ
bundle file into a specific directory.
e.g.:
$ hc app unpack ./some/dir/my-app.happ
creates a new directory ./some/dir/my-app
, containining a new happ.yaml
manifest
Fields of Unpack
Implementations
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 HcAppBundle
impl Send for HcAppBundle
impl Sync for HcAppBundle
impl Unpin for HcAppBundle
impl UnwindSafe for HcAppBundle
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