pub struct Evo { /* private fields */ }Implementations§
Source§impl Evo
impl Evo
pub fn new(paths: EvoPaths) -> Self
pub fn paths(&self) -> &EvoPaths
pub fn command_spec(&self, name: &str) -> CommandSpec
pub fn resolve_command(&self, name: &str) -> Result<CommandSpec>
pub fn create(&self, name: &str, payload: CommandPayload) -> Result<CommandSpec>
pub fn update(&self, name: &str, payload: CommandPayload) -> Result<CommandSpec>
pub fn list(&self) -> Result<Vec<CommandListEntry>>
pub fn show(&self, name: &str) -> Result<CommandDetails>
pub fn remove(&self, name: &str) -> Result<()>
pub fn run( &self, name: &str, args: &[OsString], stdin_bytes: Option<Vec<u8>>, ) -> Result<ExitStatus>
pub fn list_env_keys(&self, name: &str) -> Result<Vec<String>>
pub fn set_env(&self, name: &str, key: String, value: String) -> Result<()>
pub fn unset_env(&self, name: &str, keys: Vec<String>) -> Result<()>
pub fn ensure_search_index(&self) -> Result<()>
pub fn reindex(&self) -> Result<()>
pub fn search(&self, query: &str, limit: usize) -> Result<Vec<CommandSummary>>
pub fn list_summaries(&self) -> Result<Vec<CommandSummary>>
pub fn validate_name(&self, name: &str) -> Result<()>
pub fn load_env_values( &self, spec: &CommandSpec, command_name: &str, ) -> Result<BTreeMap<String, String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Evo
impl RefUnwindSafe for Evo
impl Send for Evo
impl Sync for Evo
impl Unpin for Evo
impl UnsafeUnpin for Evo
impl UnwindSafe for Evo
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