pub struct CustomToolManager { /* private fields */ }Expand description
Custom-tool manager — loads and merges global + project custom tools.
Implementations§
Source§impl CustomToolManager
impl CustomToolManager
Sourcepub fn load() -> Self
pub fn load() -> Self
Load and merge global + project custom-tools configs.
Global config is loaded from ~/.config/tinyharness/custom_tools.json.
Project config is loaded from .tinyharness/custom_tools.json (walking up
from CWD). Project tools are appended to the global list (both run;
global first, then project).
Sourcepub fn load_from_cwd(cwd: &Path) -> Self
pub fn load_from_cwd(cwd: &Path) -> Self
Load from a specific directory (for testing).
Sourcepub fn from_config(config: CustomToolConfig) -> Self
pub fn from_config(config: CustomToolConfig) -> Self
Load from an explicit config (for testing).
Sourcepub fn custom_tools(&self) -> &[CustomToolDefinition]
pub fn custom_tools(&self) -> &[CustomToolDefinition]
Return the list of custom tool definitions.
Trait Implementations§
Source§impl Clone for CustomToolManager
impl Clone for CustomToolManager
Source§fn clone(&self) -> CustomToolManager
fn clone(&self) -> CustomToolManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomToolManager
impl Debug for CustomToolManager
Source§impl Default for CustomToolManager
impl Default for CustomToolManager
Source§fn default() -> CustomToolManager
fn default() -> CustomToolManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CustomToolManager
impl RefUnwindSafe for CustomToolManager
impl Send for CustomToolManager
impl Sync for CustomToolManager
impl Unpin for CustomToolManager
impl UnsafeUnpin for CustomToolManager
impl UnwindSafe for CustomToolManager
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