pub enum Command {
Show 25 variants
Init {
toml: bool,
name: Option<String>,
starter: Option<String>,
start: bool,
},
New {
directory: String,
toml: bool,
name: Option<String>,
starter: Option<String>,
start: bool,
},
Ext(ExtCommand),
Patches(PatchesCommand),
Add {
packages: Vec<String>,
dev: bool,
with_dependencies: bool,
with_all_dependencies: bool,
no_sync: bool,
frozen: bool,
resolution: ResolutionStrategy,
working_dir: Option<PathBuf>,
dry_run: bool,
},
Remove {
packages: Vec<String>,
dev: bool,
no_sync: bool,
frozen: bool,
working_dir: Option<PathBuf>,
dry_run: bool,
},
Lock {
resolution: ResolutionStrategy,
working_dir: Option<PathBuf>,
dry_run: bool,
},
Tree {
package: Option<String>,
no_dev: bool,
working_dir: Option<PathBuf>,
},
Outdated {
packages: Vec<String>,
direct: bool,
major_only: bool,
minor_only: bool,
patch_only: bool,
no_dev: bool,
strict: bool,
working_dir: Option<PathBuf>,
},
Sync {
offline: bool,
dry_run: bool,
scripts: bool,
no_scripts: bool,
resolution: ResolutionStrategy,
patches: bool,
no_patches: bool,
php: PhpPrefArgs,
},
Run {
with: Vec<String>,
no_sync: bool,
xdebug: bool,
php_request: Option<String>,
php: PhpPrefArgs,
argv: Vec<String>,
},
Php(PhpCommand),
Node(NodeCommand),
Composer(ComposerCommand),
Tool(ToolCommand),
ToolExec {
wrapper: PathBuf,
args: Vec<OsString>,
},
Cache(CacheCommand),
SelfCmd(SelfCommand),
Server(ServerArgs),
Services(ServicesCommand),
Projects(ProjectsCommand),
Start {
no_sync: bool,
dry_run: bool,
explain: bool,
no_builtin: bool,
recipe: Option<String>,
},
Stop {
names: Vec<String>,
purge: bool,
},
Make {
task: Option<String>,
list: bool,
dry_run: bool,
explain: bool,
no_sync: bool,
no_builtin: bool,
recipe: Option<String>,
print: bool,
},
Format {
args: Vec<OsString>,
},
}Variants§
Init
Create a new project
Fields
name: Option<String>Set the package name (vendor/package) of the generated
composer.json. Overrides the name from a --starter manifest
New
Create a new project in a new directory
Fields
name: Option<String>Set the package name (vendor/package) of the generated
composer.json. Overrides the name from a --starter manifest
Ext(ExtCommand)
Manage PHP extensions
Patches(PatchesCommand)
Manage patches applied to installed packages
Add
Add dependencies to the project
Fields
resolution: ResolutionStrategyVersion-preference policy when resolving
Remove
Remove dependencies from the project
Fields
Lock
Update the project’s lockfile
Fields
resolution: ResolutionStrategyVersion-preference policy when re-resolving changed requires
Tree
Display the project’s dependency tree
Fields
Outdated
List installed packages with newer versions available
Fields
Sync
Install everything the project requires
Fields
scripts: boolRun composer.json root scripts for this sync, overriding
[scripts] run in bougie.toml. Off by default (opt-in)
no_scripts: boolSkip composer.json root scripts for this sync, overriding
[scripts] run = true in bougie.toml
resolution: ResolutionStrategyVersion-preference policy when a fresh lock must be resolved.
No effect when a composer.lock already exists
patches: boolApply patches for this sync, overriding [patches] enable.
On by default when patches are declared
php: PhpPrefArgsRun
Run a command or script
Fields
xdebug: boolLayer the server’s debug overlay (vendor/bougie/conf.d-debug/)
into PHP_INI_SCAN_DIR and set XDEBUG_SESSION=1 for the
child. Installs xdebug on first use if not already present
php_request: Option<String>Run with a specific PHP interpreter. Accepts a version
(8.3, 8.3.12), a constraint (~8.3, >=8.2,<8.4), or a
path to a php binary. Forces a sync to that interpreter,
so it can’t be combined with --no-sync
php: PhpPrefArgsPhp(PhpCommand)
Manage PHP interpreters
Node(NodeCommand)
Manage Node.js interpreters
Composer(ComposerCommand)
Manage PHP packages with a composer compatible interface
Tool(ToolCommand)
Run and install commands provided by PHP packages
ToolExec
Runtime shim invoked by tool wrappers (#!.../bougie tool-exec).
Not for direct CLI use; hidden from --help
Fields
Cache(CacheCommand)
Manage bougie’s cache
SelfCmd(SelfCommand)
Manage the bougie binary itself
Server(ServerArgs)
Run the bougie development HTTP server
Services(ServicesCommand)
Manage project-scoped dev services
Projects(ProjectsCommand)
Inspect and manage provisioned tenants
Start
Bring the whole project up
Fields
Stop
Bring the project down
Fields
Make
Run project tasks
Fields
Format
Format the project’s PHP code
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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