pub enum PackageOperation {
Show 14 variants
Major(GetSet),
Minor(GetSet),
Patch(GetSet),
Alpha(GetSetRm),
Beta(GetSetRm),
RC(GetSetRm),
Build(GetSetBuild),
Get,
Set(SetVer),
Version,
Revision,
File(FilesCommand),
Rm,
List,
}
Variants§
Major(GetSet)
Change the major version number
Minor(GetSet)
Change the minor version number
Patch(GetSet)
Change the patch version number
Alpha(GetSetRm)
Change the alpha identifier
Beta(GetSetRm)
Change the beta identifier
RC(GetSetRm)
Change the release candidate identifier
Build(GetSetBuild)
Change the build identifier
Get
Get the current version number as a full SemVer string
Set(SetVer)
Set the version number to a specific version
Version
Get just the version number as a string with no revision or build identifiers
Revision
Get just the revision number as a string with no build identifiers
File(FilesCommand)
Track and update the version number in a file
Rm
Remove a package
List
List tracked packages
Trait Implementations§
Source§impl Clone for PackageOperation
impl Clone for PackageOperation
Source§fn clone(&self) -> PackageOperation
fn clone(&self) -> PackageOperation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageOperation
impl Debug for PackageOperation
Source§impl FromArgMatches for PackageOperation
impl FromArgMatches for PackageOperation
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 PartialEq for PackageOperation
impl PartialEq for PackageOperation
Source§impl Subcommand for PackageOperation
impl Subcommand for PackageOperation
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 subcommandSource§impl TryFrom<&PackageOperation> for Scope
impl TryFrom<&PackageOperation> for Scope
Source§type Error = VersionError
type Error = VersionError
The type returned in the event of a conversion error.
Source§impl TryFrom<PackageOperation> for Scope
impl TryFrom<PackageOperation> for Scope
Source§type Error = VersionError
type Error = VersionError
The type returned in the event of a conversion error.
impl StructuralPartialEq for PackageOperation
Auto Trait Implementations§
impl Freeze for PackageOperation
impl RefUnwindSafe for PackageOperation
impl Send for PackageOperation
impl Sync for PackageOperation
impl Unpin for PackageOperation
impl UnwindSafe for PackageOperation
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