pub enum Command {
Show 16 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),
Sync {
offline: bool,
dry_run: bool,
scripts: bool,
no_scripts: bool,
},
Up {
names: Vec<String>,
detach: bool,
},
Down {
names: Vec<String>,
purge: bool,
},
Run {
with: Vec<String>,
no_sync: bool,
xdebug: bool,
argv: Vec<String>,
},
Php(PhpCommand),
Composer(ComposerCommand),
Tool(ToolCommand),
ToolExec {
wrapper: PathBuf,
args: Vec<OsString>,
},
Cache(CacheCommand),
SelfCmd(SelfCommand),
Server(ServerArgs),
Services(ServicesCommand),
Make {
task: Option<String>,
list: bool,
dry_run: bool,
explain: bool,
no_sync: bool,
no_builtin: bool,
recipe: Option<String>,
print: bool,
},
}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.
Sync
Install everything the project requires.
Fields
Up
Start the project’s declared services (or every service in
names) and provision the project’s tenant in each. Equivalent
to the former bougie services up — promoted to a top-level
verb because it’s the most common project-startup step.
Fields
Down
Stop the project’s declared services (or every service in
names). The shared global process stays up while any other
project’s tenant remains. Equivalent to the former
bougie services down.
Fields
Run
Run a command in the project environment.
Fields
Php(PhpCommand)
Manage PHP interpreters.
Composer(ComposerCommand)
Run Composer. install, update, validate, and
dump-autoload(er) are reimplemented natively; every other
subcommand is forwarded to the project’s pinned Composer phar.
Tool(ToolCommand)
Manage globally-installed, isolated PHP CLI tools. See
TOOL_PLAN.md for the design.
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 for the current project. With no subcommand, registers the project with the shared dev server, prints its URL, and streams its log (Ctrl-C detaches). See SERVER.md.
Services(ServicesCommand)
Manage project-scoped dev services (mariadb, redis, …). See SERVICES.md and CLI.md §3.8.
Make
Walk a project recipe’s DAG, running tasks whose freshness
check fails. bougie start is a zero-arg alias for
bougie make start. See RECIPES.md.
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