pub enum PatchesCommand {
Add {
source: String,
package: Option<String>,
description: Option<String>,
depth: Option<usize>,
to_file: bool,
no_sync: bool,
},
List,
Import {
packages: Vec<String>,
all: bool,
to_file: bool,
},
Repatch {
packages: Vec<String>,
},
Relock,
Doctor,
}Variants§
Add
Add a root patch rule from a URL or local file (the composer require of patches). The target package is inferred from the diff
headers unless --package is given.
Fields
List
Show the resolved patch set, plus any unadopted dependency-declared patches (which bougie never applies automatically).
Import
Adopt dependency-declared patches into the root composer.json
(the only way a dependency’s patches ever apply).
Fields
Repatch
Force a clean re-extract + re-apply for the named packages (or all): drops their recorded fingerprints, then syncs.
Relock
Rebuild patches.lock.json from current config: re-download remote
patches and re-apply everything from pristine.
Doctor
Diagnose patch configuration: unresolvable patches/ files,
http:// URLs, missing checksums, unadopted dependency patches.
Trait Implementations§
Source§impl Debug for PatchesCommand
impl Debug for PatchesCommand
Source§impl FromArgMatches for PatchesCommand
impl FromArgMatches for PatchesCommand
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 PatchesCommand
impl Subcommand for PatchesCommand
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 PatchesCommand
impl RefUnwindSafe for PatchesCommand
impl Send for PatchesCommand
impl Sync for PatchesCommand
impl Unpin for PatchesCommand
impl UnsafeUnpin for PatchesCommand
impl UnwindSafe for PatchesCommand
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