pub enum VersionCommand {
Major(GetSet),
Minor(GetSet),
Patch(GetSet),
Alpha(GetSetRm),
Beta(GetSetRm),
RC(GetSetRm),
Build(GetSetBuild),
Get,
Version,
Revision,
File(FilesCommand),
}
Expand description
Specify the version number to change
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
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
Trait Implementations§
Source§impl Clone for VersionCommand
impl Clone for VersionCommand
Source§fn clone(&self) -> VersionCommand
fn clone(&self) -> VersionCommand
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 CommandRun for VersionCommand
impl CommandRun for VersionCommand
fn run(&self, version: &mut VersionFile) -> VersionResult<()>
Source§impl Debug for VersionCommand
impl Debug for VersionCommand
Source§impl FromArgMatches for VersionCommand
impl FromArgMatches for VersionCommand
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 VersionCommand
impl Subcommand for VersionCommand
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
Source§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 VersionCommand
impl RefUnwindSafe for VersionCommand
impl Send for VersionCommand
impl Sync for VersionCommand
impl Unpin for VersionCommand
impl UnwindSafe for VersionCommand
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