pub(crate) enum OstreeCommand {
PullLocal {
ostree_repo_path: PathBuf,
ostree_ref: String,
base_name: Option<String>,
},
Pull {
ostree_repo_url: String,
ostree_ref: String,
base_name: Option<String>,
},
Mount {
commit: String,
mountpoint: String,
upperdir: Option<PathBuf>,
workdir: Option<PathBuf>,
read_write: bool,
},
Dump {
commit_name: String,
},
ComputeId {
commit_name: String,
},
Inspect {
source: String,
metadata: bool,
},
Tag {
source: String,
name: String,
},
Untag {
name: String,
},
ListCommits,
}Variants§
PullLocal
Fields
Pull
Fields
Mount
Mount an ostree commit’s composefs EROFS at the given mountpoint
Fields
Dump
Dump the filesystem of an ostree commit as a composefs dumpfile to stdout
ComputeId
Compute the composefs image ID of an ostree commit
Inspect
Show the contents of an ostree commit
Fields
Tag
Tag an ostree commit with a name
The source can be an ostree commit checksum or an existing ref name.
Fields
Untag
Remove a named ostree reference
ListCommits
List all ostree commits in the repository
Trait Implementations§
Source§impl Debug for OstreeCommand
impl Debug for OstreeCommand
Source§impl FromArgMatches for OstreeCommand
impl FromArgMatches for OstreeCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for OstreeCommand
impl Subcommand for OstreeCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for OstreeCommand
impl RefUnwindSafe for OstreeCommand
impl Send for OstreeCommand
impl Sync for OstreeCommand
impl Unpin for OstreeCommand
impl UnsafeUnpin for OstreeCommand
impl UnwindSafe for OstreeCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more