pub enum PrCommand {
Status,
Next {
slug: Option<String>,
},
Publish {
model: Option<String>,
title: Option<String>,
body: Option<String>,
},
Open {
model: Option<String>,
title: Option<String>,
body: Option<String>,
},
Submit {
strict: bool,
create_pr: bool,
complete: bool,
next: Option<String>,
worktree: Option<String>,
message: Option<String>,
title: Option<String>,
body: Option<String>,
},
Land {
strict: bool,
local: bool,
complete: bool,
next: Option<String>,
worktree: Option<String>,
message: Option<String>,
title: Option<String>,
body: Option<String>,
},
Abandon {
branch: Option<String>,
force: bool,
},
}Variants§
Status
Show current branch’s PR state
Next
After an out-of-band merge, rotate this Task to its next serial PR, carrying committed and uncommitted follow-up onto the new branch.
Fields
Publish
Publish a PR headlessly: push, create or refresh, print state + URL. Opens no review surface.
Open
Publish a PR, then open it for review (the GitHub page in the browser). The explicit human review action.
Submit
Prepare a PR to land: rebase, clear scratch, mark ready, and assign it to you. Nothing merges until you click merge on GitHub.
Fields
Land
Land a PR hands-off: rebase, clear scratch, and arm auto-merge
Fields
Abandon
Abandon branch: close PR, remove worktree, delete branch
Trait Implementations§
Source§impl FromArgMatches for PrCommand
impl FromArgMatches for PrCommand
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 PrCommand
impl Subcommand for PrCommand
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 PrCommand
impl RefUnwindSafe for PrCommand
impl Send for PrCommand
impl Sync for PrCommand
impl Unpin for PrCommand
impl UnsafeUnpin for PrCommand
impl UnwindSafe for PrCommand
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