pub enum ReviewCommand {
Create {
name: String,
},
Start {
name: String,
},
List,
Show {
name: String,
json: bool,
},
SetState {
name: String,
state: StateArg,
},
AddComment {
name: String,
file: String,
side: SideArg,
old_line: Option<u32>,
new_line: Option<u32>,
body: String,
author: AuthorArg,
},
AddReply {
name: String,
comment_id: u64,
body: String,
author: AuthorArg,
},
MarkAddressed {
name: String,
comment_id: u64,
author: AuthorArg,
},
MarkOpen {
name: String,
comment_id: u64,
author: AuthorArg,
},
RunAiSession {
name: String,
provider: AiProviderArg,
mode: Option<AiSessionModeArg>,
comment_ids: Vec<u64>,
},
}Variants§
Create
Start
List
Show
SetState
AddComment
Fields
Comment author (user or ai, default: user).
AddReply
Fields
Reply author (user or ai, default: ai).
MarkAddressed
Fields
Actor marking the comment (user or ai, default: user).
MarkOpen
Fields
Actor reopening the comment (user or ai, default: user).
RunAiSession
Fields
§
provider: AiProviderArgAI provider to run for the session.
§
mode: Option<AiSessionModeArg>Session mode override (for example reply or refactor).
Trait Implementations§
Source§impl CommandFactory for ReviewCommand
impl CommandFactory for ReviewCommand
Source§impl Debug for ReviewCommand
impl Debug for ReviewCommand
Source§impl FromArgMatches for ReviewCommand
impl FromArgMatches for ReviewCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for ReviewCommand
impl Parser for ReviewCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl Subcommand for ReviewCommand
impl Subcommand for ReviewCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ReviewCommand
impl RefUnwindSafe for ReviewCommand
impl Send for ReviewCommand
impl Sync for ReviewCommand
impl Unpin for ReviewCommand
impl UnsafeUnpin for ReviewCommand
impl UnwindSafe for ReviewCommand
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