pub struct CleanupArgs {
pub numbers: Vec<u64>,
pub merged: bool,
pub closed: bool,
pub worktree: Option<String>,
pub remote: bool,
pub local: bool,
pub force: bool,
pub dry_run: bool,
pub yes: bool,
}Expand description
Arguments for the gf pr cleanup command.
Supports cleanup by PR numbers, by status (--merged/--closed),
or a combination. The numbers field is mutually exclusive with
merged/closed flags.
Fields§
§numbers: Vec<u64>PR numbers to clean up (mutually exclusive with merged/closed).
merged: boolClean up all merged PRs.
closed: boolClean up all closed PRs.
worktree: Option<String>Remove the specified worktree path after cleanup.
remote: boolDelete remote branches.
local: boolDelete local branches.
force: boolForce cleanup of unmerged branches.
dry_run: boolShow what would be done without actually doing it.
yes: boolSkip interactive confirmation.
Trait Implementations§
Source§impl Clone for CleanupArgs
impl Clone for CleanupArgs
Source§fn clone(&self) -> CleanupArgs
fn clone(&self) -> CleanupArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CleanupArgs
impl RefUnwindSafe for CleanupArgs
impl Send for CleanupArgs
impl Sync for CleanupArgs
impl Unpin for CleanupArgs
impl UnsafeUnpin for CleanupArgs
impl UnwindSafe for CleanupArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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