pub enum TaskCommand {
Transition {
task_id: u32,
target_state: TaskStateArg,
},
Assign {
task_id: u32,
execution_owner: Option<String>,
review_owner: Option<String>,
},
Review {
task_id: u32,
disposition: ReviewDispositionArg,
feedback: Option<String>,
},
Update {
task_id: u32,
branch: Option<String>,
commit: Option<String>,
blocked_on: Option<String>,
clear_blocked: bool,
},
AutoMerge {
task_id: u32,
action: AutoMergeAction,
},
Schedule {
task_id: u32,
at: Option<String>,
cron: Option<String>,
clear: bool,
},
}Variants§
Transition
Transition a task to a new workflow state
Assign
Assign execution and/or review ownership
Fields
Review
Record a review disposition for a task
Fields
§
disposition: ReviewDispositionArgReview disposition
Update
Update workflow metadata fields
Fields
AutoMerge
Set per-task auto-merge override
Schedule
Set scheduled_for and/or cron_schedule on a task
Trait Implementations§
Source§impl Debug for TaskCommand
impl Debug for TaskCommand
Source§impl FromArgMatches for TaskCommand
impl FromArgMatches for TaskCommand
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 Subcommand for TaskCommand
impl Subcommand for TaskCommand
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 TaskCommand
impl RefUnwindSafe for TaskCommand
impl Send for TaskCommand
impl Sync for TaskCommand
impl Unpin for TaskCommand
impl UnsafeUnpin for TaskCommand
impl UnwindSafe for TaskCommand
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