pub enum ForceBump {
Major,
Minor,
Patch,
First,
Release,
Rc,
Beta,
Alpha,
}Expand description
This enum is used by CalculatorConfig::set_force_bump to override the bump
that would be calculated from conventional commits.
§Variants
Variants are valid depending on the current version type.
| Variant | Non Prodution | Pre Release | Production | Description |
|---|---|---|---|---|
Major | X | X | Bump the major component | |
Minor | X | X | Bump the minor component | |
Patch | X | X | Bump the patch component | |
First | X | Set the first production version (1.0.0) | ||
Release | X | Remove the pre-release | ||
Rc | X | X | X | Bump or create rc pre-release |
Beta | X | X | X | Bump or create beta pre-release |
Alpha | X | X | X | Bump or create alpha pre-release |
Where it is not valid the bump is forced to None.
Variants§
Major
Bump the major version component.
Minor
Bump the major version component.
Patch
Bump the major version component.
First
Release first production (1.0.0) version.
Release
Remove the pre-release version component if present.
Rc
Bump or create the rc pre-release version component.
Beta
Bump or create the beta pre-release version component.
Alpha
Bump or create the alpha pre-release version component.
Trait Implementations§
Source§impl CommandFactory for ForceBump
impl CommandFactory for ForceBump
Source§impl FromArgMatches for ForceBump
impl FromArgMatches for ForceBump
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 Ord for ForceBump
impl Ord for ForceBump
Source§impl Parser for ForceBump
impl Parser for ForceBump
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 PartialOrd for ForceBump
impl PartialOrd for ForceBump
Source§impl Subcommand for ForceBump
impl Subcommand for ForceBump
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 subcommandimpl Eq for ForceBump
impl StructuralPartialEq for ForceBump
Auto Trait Implementations§
impl Freeze for ForceBump
impl RefUnwindSafe for ForceBump
impl Send for ForceBump
impl Sync for ForceBump
impl Unpin for ForceBump
impl UnwindSafe for ForceBump
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.