pub struct ToastyCli { /* private fields */ }Expand description
Toasty CLI library for building custom command-line tools
Implementations§
Source§impl ToastyCli
impl ToastyCli
Sourcepub fn with_config(db: Db, config: Config) -> Self
pub fn with_config(db: Db, config: Config) -> Self
Create a new ToastyCli instance with a custom configuration
Sourcepub async fn parse_and_run(&self) -> Result<()>
pub async fn parse_and_run(&self) -> Result<()>
Parse and execute CLI commands from command-line arguments
Sourcepub async fn parse_from<I, T>(&self, args: I) -> Result<()>
pub async fn parse_from<I, T>(&self, args: I) -> Result<()>
Parse and execute CLI commands from an iterator of arguments
Auto Trait Implementations§
impl Freeze for ToastyCli
impl !RefUnwindSafe for ToastyCli
impl Send for ToastyCli
impl Sync for ToastyCli
impl Unpin for ToastyCli
impl !UnwindSafe for ToastyCli
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