pub(crate) enum PackageSubcommand {
Build {
arch: Option<Arch>,
workdir: Option<PathBuf>,
file: PathBuf,
kind: Option<String>,
init: Option<PathBuf>,
keep_files: bool,
crlf_ok: bool,
},
Import {
arch: Option<Arch>,
repo: String,
branch: String,
workdir: Option<PathBuf>,
file: Option<PathBuf>,
kind: Option<String>,
init: Option<PathBuf>,
crlf_ok: bool,
},
Inspect {
name: String,
version: Version,
syntax: String,
},
List {
latest: bool,
},
Load {
name: String,
version: Version,
},
Pull {
packages: Vec<String>,
},
Push {
packages: Vec<String>,
},
Remove {
force: bool,
packages: Vec<String>,
docker_socket: PathBuf,
client_version: ClientVersion,
},
Test {
name: String,
version: Version,
show_result: Option<PathBuf>,
docker_socket: PathBuf,
client_version: ClientVersion,
keep_containers: bool,
},
Search {
term: Option<String>,
},
Unpublish {
name: String,
version: Version,
force: bool,
},
}
Variants§
Build
Fields
Import
Fields
Inspect
List
Load
Pull
Push
Remove
Fields
§
client_version: ClientVersion
The Docker client version.
Test
Fields
§
client_version: ClientVersion
The Docker client version.
Search
Unpublish
Trait Implementations§
Source§impl CommandFactory for PackageSubcommand
impl CommandFactory for PackageSubcommand
Source§impl FromArgMatches for PackageSubcommand
impl FromArgMatches for PackageSubcommand
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 Parser for PackageSubcommand
impl Parser for PackageSubcommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl Subcommand for PackageSubcommand
impl Subcommand for PackageSubcommand
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 PackageSubcommand
impl RefUnwindSafe for PackageSubcommand
impl Send for PackageSubcommand
impl Sync for PackageSubcommand
impl Unpin for PackageSubcommand
impl UnwindSafe for PackageSubcommand
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request