pub enum ProtocolCommand {
Start {
bone_id: String,
dispatched: bool,
execute: bool,
args: ProtocolArgs,
},
Finish {
bone_id: String,
no_merge: bool,
force: bool,
execute: bool,
args: ProtocolArgs,
},
Review {
bone_id: String,
reviewers: Option<String>,
review_id: Option<String>,
execute: bool,
args: ProtocolArgs,
},
Cleanup {
execute: bool,
args: ProtocolArgs,
},
Resume {
args: ProtocolArgs,
},
Merge {
workspace: String,
message: Option<String>,
force: bool,
execute: bool,
args: ProtocolArgs,
},
}Variants§
Start
Check state and output commands to start working on a bone
Fields
§
args: ProtocolArgsFinish
Check state and output commands to finish a bone
Fields
§
args: ProtocolArgsReview
Check state and output commands to request review
Fields
§
args: ProtocolArgsCleanup
Check for held resources and output cleanup commands
Resume
Check for in-progress work from a previous session
Fields
§
args: ProtocolArgsMerge
Check preconditions and output commands to merge a worker’s completed workspace
Fields
§
message: Option<String>Commit message for the merge (e.g. “feat: add login flow”). Use conventional commit prefix: feat:, fix:, chore:, etc. Required; opens $EDITOR on TTY if omitted.
§
args: ProtocolArgsImplementations§
Trait Implementations§
Source§impl Debug for ProtocolCommand
impl Debug for ProtocolCommand
Source§impl FromArgMatches for ProtocolCommand
impl FromArgMatches for ProtocolCommand
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 ProtocolCommand
impl Subcommand for ProtocolCommand
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 ProtocolCommand
impl RefUnwindSafe for ProtocolCommand
impl Send for ProtocolCommand
impl Sync for ProtocolCommand
impl Unpin for ProtocolCommand
impl UnsafeUnpin for ProtocolCommand
impl UnwindSafe for ProtocolCommand
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