pub enum ExtCommand {
Add {
args: Vec<String>,
no_sync: bool,
php: PhpPrefArgs,
},
Remove {
names: Vec<String>,
no_sync: bool,
},
List {
only_installed: bool,
only_available: bool,
all_versions: bool,
all_platforms: bool,
show_urls: bool,
},
}Variants§
Add
Add an extension dependency. Each <arg> is either an
extension name (e.g. redis, xdebug@3.5.1) — fetched from
the index and recorded in composer.json — or a path to a local
.so file (e.g. /opt/tideways/tideways-php-8.5.so), in which
case bougie copies it into the store, auto-detects the
extension name and Zend-ness from the binary, and writes a
fragment to the durable, machine-local conf.d-local/ (under
$BOUGIE_HOME) without touching composer.json. Mix and match in
one invocation.
Fields
§
php: PhpPrefArgsRemove
Remove an extension dependency.
Fields
List
List available extensions.
Fields
Trait Implementations§
Source§impl Debug for ExtCommand
impl Debug for ExtCommand
Source§impl FromArgMatches for ExtCommand
impl FromArgMatches for ExtCommand
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 ExtCommand
impl Subcommand for ExtCommand
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 ExtCommand
impl RefUnwindSafe for ExtCommand
impl Send for ExtCommand
impl Sync for ExtCommand
impl Unpin for ExtCommand
impl UnsafeUnpin for ExtCommand
impl UnwindSafe for ExtCommand
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