pub enum PatchesCommand {
Add {
source: String,
package: Option<String>,
description: Option<String>,
depth: Option<usize>,
to_file: bool,
no_sync: bool,
},
Create {
package: String,
output: Option<String>,
stdout: 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
Create
Author a patch from hand-edited vendor/ files: diff an installed
package against its originally-installed (pristine) contents and write
a clean patch into the patches/ directory, where bougie
auto-discovers and re-applies it on the next sync
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>
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>
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
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
Self can parse a specific subcommand