pub struct CommandFactory;
Expand description
Command factory for creating command configurations from CLI args
Implementations§
Source§impl CommandFactory
impl CommandFactory
pub fn create_chat_command(verbose: bool, prompt: Option<String>) -> ChatCommand
pub fn create_analyze_command( depth: &str, format: &str, ) -> Result<AnalyzeCommand>
pub fn create_project_command( name: String, features: String, template: Option<String>, git: bool, ) -> CreateProjectCommand
pub fn create_validate_command( api: bool, filesystem: bool, all: bool, ) -> ValidateCommand
pub fn create_ask_command(prompt: Vec<String>) -> AskCommand
Auto Trait Implementations§
impl Freeze for CommandFactory
impl RefUnwindSafe for CommandFactory
impl Send for CommandFactory
impl Sync for CommandFactory
impl Unpin for CommandFactory
impl UnwindSafe for CommandFactory
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more