switchyard/adapters/
path.rs

1use crate::types::{errors::Result, safepath::SafePath};
2
3pub trait PathResolver {
4    /// Resolve a binary name to a `SafePath`.
5    /// # Errors
6    /// Returns an error if the binary cannot be resolved to a safe path.
7    fn resolve(&self, bin: &str) -> Result<SafePath>;
8}