pub struct Argument {Show 15 fields
pub Directory: PathBuf,
pub Profile: String,
pub HotReload: bool,
pub Watch: bool,
pub LiveReloadPort: u16,
pub Workbench: Option<String>,
pub Debug: Option<String>,
pub Level: Option<String>,
pub NodeEnvironment: Option<String>,
pub NodeVersion: Option<String>,
pub Dependency: Option<String>,
pub env_override: Vec<(String, String)>,
pub Verbose: bool,
pub DryRun: bool,
pub Command: Vec<String>,
}Expand description
Represents parsed command-line arguments and environment variables that control the development run process.
This struct is generated by clap from the Parser derive macro and
automatically parses command-line arguments and environment variables into
a strongly-typed configuration object.
Fields§
§Directory: PathBufThe working directory for the run process.
This field specifies the directory where the development server will be started. It can be set via:
- Command-line:
--directory <path> - Environment:
RUN_DIR - Default: “.”
Profile: StringThe build profile to use for the run.
This field specifies which profile from the configuration to use. It can be set via:
- Command-line:
--profile <name> - Environment:
RUN_PROFILE - Default: “debug”
HotReload: boolEnable hot-reload for development.
When enabled, automatically reloads the application when source files change.
Watch: boolEnable watch mode for file changes.
When enabled, watches for file changes and triggers rebuilds.
LiveReloadPort: u16Port for live-reload server.
Specifies the port used by the live-reload server.
Workbench: Option<String>Override workbench type.
Specifies which workbench to use (Browser, Wind, Mountain, Electron).
Debug: Option<String>Enable debug mode.
When enabled, runs in debug mode with additional logging.
Level: Option<String>Log level for the run process.
NodeEnvironment: Option<String>Node.js environment (development, production).
NodeVersion: Option<String>Node.js version to use.
Dependency: Option<String>Dependency source.
env_override: Vec<(String, String)>Override environment variables (key=value pairs).
Verbose: boolEnable verbose output.
DryRun: boolDry run mode (show configuration without running).
Command: Vec<String>The run command and its arguments to execute.
This field accepts all remaining command-line arguments as the run command to execute.
Trait Implementations§
Source§impl Args for Argument
impl Args for Argument
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for Argument
impl FromArgMatches for Argument
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.