pub enum Forge {
Github,
Gitlab,
}Expand description
A supported forge.
Variants§
Github
github.com, driven through gh.
Gitlab
gitlab.com or a self-hosted GitLab, driven through glab.
Implementations§
Source§impl Forge
impl Forge
Sourcepub const fn cli_override(self) -> &'static str
pub const fn cli_override(self) -> &'static str
The environment variable that substitutes this forge’s CLI.
Sourcepub const fn cli_floor(self) -> (u32, u32, u32)
pub const fn cli_floor(self) -> (u32, u32, u32)
The lowest forge-CLI version this binary calls.
gh issue develop was introduced in gh 2.19.0, so below that the
command does not exist and the floor is a fact rather than a
preference. The default naming this binary depends on is a property
of the GraphQL API — CreateLinkedBranchInput.name is optional and
documented to default to the issue number and title — so no higher
floor buys correctness.
The glab floor is the version whose source this behavior was
written against. Only glab api is called, which is much older, so
the floor is stricter than the calls need.
Sourcepub const fn cli_upgrade(self) -> &'static str
pub const fn cli_upgrade(self) -> &'static str
The command that raises a CLI below Self::cli_floor.
Trait Implementations§
impl Copy for Forge
impl Eq for Forge
impl StructuralPartialEq for Forge
Auto Trait Implementations§
impl Freeze for Forge
impl RefUnwindSafe for Forge
impl Send for Forge
impl Sync for Forge
impl Unpin for Forge
impl UnsafeUnpin for Forge
impl UnwindSafe for Forge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.