Enum holochain_cli_bundle::HcDnaBundle
source · [−]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
Init
Fields
path: PathBuf
The path to create the working directory
Create a new, empty Holochain DNA bundle working directory and create a new
sample dna.yaml
manifest inside.
.
Pack
Fields
path: PathBuf
The path to the working directory containing a dna.yaml
manifest
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
Unpack
Fields
path: PathBuf
The path to the bundle to unpack
output: Option<PathBuf>
Specify the directory for the unpacked content
If not specified, the directory will be placed alongside the bundle file, with the same name as the bundle file name.
force: bool
Overwrite an existing directory, if one exists
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
Implementations
Trait Implementations
sourceimpl Debug for HcDnaBundle
impl Debug for HcDnaBundle
sourceimpl StructOpt for HcDnaBundle
impl StructOpt for HcDnaBundle
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
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 moresourcefn from_args() -> Self
fn from_args() -> Self
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program. Read moresourcefn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
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 moresourcefn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Vec
of your making.
Print the error message and quit the program in case of failure. Read moresourcefn 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,
Vec
of your making. Read moreAuto Trait Implementations
impl RefUnwindSafe for HcDnaBundle
impl Send for HcDnaBundle
impl Sync for HcDnaBundle
impl Unpin for HcDnaBundle
impl UnwindSafe for HcDnaBundle
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
impl<T> FutureExt for T
impl<T> FutureExt for T
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>
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>
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.