pub enum Tool {
GitLab,
Linear,
}Expand description
The supported external tracker, selected via --target gitlab|linear.
Variants§
Implementations§
Source§impl Tool
impl Tool
pub fn from_target(target: &str) -> Result<Tool>
Sourcepub fn token_var(self) -> &'static str
pub fn token_var(self) -> &'static str
The token env var that wins over any tix.toml token — the tool’s
primary name, which is what the tix.toml warning and the injection
tests name.
Sourcepub fn token_vars(self) -> &'static [&'static str]
pub fn token_vars(self) -> &'static [&'static str]
Every environment variable that can carry this tool’s token, in precedence order.
token_var is the primary name tix documents; the extras are the names
the tool itself already reads, so a user who has the tracker
configured does not have to export a second, tix-specific variable. The
canonical linear-cli reads LINEAR_API_KEY (its help shows
printf '%s\n' "$LINEAR_API_KEY" | linear config set-key), so that is
accepted after tix’s own LINEAR_TOKEN.
pub fn as_str(self) -> &'static str
Trait Implementations§
impl Copy for Tool
impl Eq for Tool
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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> 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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more