pub enum Tool {
Git,
Sh,
ForgeCli(Forge),
Nix,
Cargo,
GitCliff,
Uv,
}Expand description
One tool rk runs.
Variants§
Git
git, which every verb that reads or writes a repository runs.
Sh
The POSIX shell every setup step and recorded build command runs through.
ForgeCli(Forge)
A forge CLI: gh or glab.
Nix
Nix, which rk self-depend sync updates and builds a devshell with.
Cargo
cargo, which rk integrate asks for a crate’s package listing.
GitCliff
git-cliff, which the release engine computes a version and a changelog with.
Uv
uv, which the python driver adapter runs.
Implementations§
Source§impl Tool
impl Tool
Sourcepub const fn override_var(self) -> Option<&'static str>
pub const fn override_var(self) -> Option<&'static str>
The environment variable that substitutes the binary, where one exists.
Sourcepub fn program(self) -> OsString
pub fn program(self) -> OsString
The program this process spawns for the tool: the override where
it is set and not empty, else the binary name, which PATH
resolves. Every spawn of the tool takes its program from here, so
the check judges the program that runs.
Sourcepub const fn runs_in_target(self) -> bool
pub const fn runs_in_target(self) -> bool
Whether rk runs the tool with the target as the working directory,
so a relative override or a relative PATH entry resolves there.
git and the forge CLI run from the caller’s directory.
Trait Implementations§
impl Copy for Tool
impl Eq for Tool
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Forget for Tool
impl Freeze for Tool
impl Move 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
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.