pub enum ServicesCommand {
Up {
names: Vec<String>,
detach: bool,
},
Down {
names: Vec<String>,
purge: bool,
},
Add {
names: Vec<String>,
},
Remove {
names: Vec<String>,
purge: bool,
},
List {
all: bool,
},
Catalog,
Restart {
names: Vec<String>,
},
Status {
name: Option<String>,
},
Logs {
name: Option<String>,
follow: bool,
lines: usize,
},
Daemon(ServicesDaemonCommand),
}Variants§
Up
Start the project’s declared services (or every service in
names) and provision the project’s tenant in each. For the
whole-project bring-up use bougie start.
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. For the whole-project teardown use
bougie stop.
Fields
Add
Declare a service in the project. Errors if the name isn’t in
the catalog. Use bougie services catalog to discover names.
Remove
Remove a service declaration from the project. Tenant data is
kept by default (re-adding restores it); pass --purge to also
destroy it.
Fields
List
List the services declared in the current project.
Fields
Catalog
Print the built-in service catalog (no daemon required).
Restart
Restart the named services (or every declared service). Stops then starts the underlying global process; the tenant ledger is preserved, so generated passwords / DB numbers survive. Affects every project sharing the same service.
Status
Per-service status for the current project.
Logs
Tail (and optionally follow) service logs. With no name, shows
the combined (“multilog”) stream of every service declared in the
project, each line prefixed with its (colorized) service name —
the same view bougie services up attaches to.
Fields
Daemon(ServicesDaemonCommand)
Inspect and control the bougied daemon.
Trait Implementations§
Source§impl Debug for ServicesCommand
impl Debug for ServicesCommand
Source§impl FromArgMatches for ServicesCommand
impl FromArgMatches for ServicesCommand
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 ServicesCommand
impl Subcommand for ServicesCommand
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