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