pub struct PushArgs {
pub remote: Option<String>,
pub thread: Option<String>,
pub thread_arg: Option<String>,
pub state: Option<String>,
pub force: bool,
pub mirror: Option<String>,
pub all_threads: bool,
}Expand description
Arguments for the push command.
Fields§
§remote: Option<String>Remote name, local path, URL, or hosted address.
thread: Option<String>Thread to push.
thread_arg: Option<String>Thread to push; alias for --thread.
state: Option<String>State to push (default: HEAD).
force: boolForce push.
mirror: Option<String>Ad-hoc dual-push: after the primary push to the heddle remote
succeeds, also push to the named git-bridge remote (default
origin). Use --mirror alone for origin, or --mirror=<name>
to target a specific git remote. The mirror push is best-effort:
if it fails, the primary push is still reported as successful
and the mirror failure surfaces as a warning.
require_equals pairs with default_missing_value (clap
requires both, or the next token after --mirror would be
swallowed as the mirror’s value — silently consuming the
positional primary remote).
all_threads: boolPush every Heddle thread, Git tag visible to this checkout, and Heddle note ref in Git-overlay mode.
Without this flag, Git-overlay push sends the current branch plus refs/notes/heddle and skips Git tags.
Implementations§
Trait Implementations§
Source§impl Args for PushArgs
impl Args for PushArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PushArgs
impl FromArgMatches for PushArgs
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>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PushArgs
impl RefUnwindSafe for PushArgs
impl Send for PushArgs
impl Sync for PushArgs
impl Unpin for PushArgs
impl UnsafeUnpin for PushArgs
impl UnwindSafe for PushArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request