pub enum ServerCommand {
Run {
config: PathBuf,
listen: Option<String>,
log_format: Option<String>,
},
Status {
config: Option<PathBuf>,
},
Open {
name: Option<String>,
},
Stop,
Logs {
follow: bool,
lines: usize,
},
Tls(ServerTlsCommand),
Hosts(ServerHostsCommand),
}Variants§
Run
Low-level primitive: run the server process against an explicit
multi-host server.toml, foreground, with no daemon. This is
what bougied spawns and what CI / power users invoke directly;
--config is required because a multi-host server has no single
project to default to. The bougied-managed path (bougie services up server) supplies its own service-scoped server.toml.
Fields
Status
Show the dev server’s hosts and live pool state. Reads the
running server’s control socket when available, falling back to
the configured hosts otherwise. Replaces the old list, which
remains as a hidden alias.
Open
Open the current project’s (or NAME’s) dev URL in a browser.
Stop
Stop the shared dev server. Equivalent to bougie services down server; stops hosting for every project, since the server is shared.
Logs
Tail the dev server’s request log. In a project, defaults to this project’s host.
Fields
Tls(ServerTlsCommand)
Manage local TLS via mkcert.
Hosts(ServerHostsCommand)
Manage /etc/hosts overrides.
Trait Implementations§
Source§impl Debug for ServerCommand
impl Debug for ServerCommand
Source§impl FromArgMatches for ServerCommand
impl FromArgMatches for ServerCommand
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 ServerCommand
impl Subcommand for ServerCommand
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