pub struct Cli {Show 15 fields
pub command: Option<Commands>,
pub profile: Option<String>,
pub config: Option<PathBuf>,
pub workbench: Option<String>,
pub node_version: Option<String>,
pub environment: Option<String>,
pub dependency: Option<String>,
pub env_override: Vec<(String, String)>,
pub hot_reload: bool,
pub watch: bool,
pub live_reload_port: u16,
pub dry_run: bool,
pub verbose: bool,
pub merge_env: bool,
pub run_args: Vec<String>,
}Expand description
Land Run System - Configuration-based development runs via Cargo
Fields§
§command: Option<Commands>§profile: Option<String>Run profile to use (shortcut for ‘run’ subcommand)
config: Option<PathBuf>Configuration file path (default: .vscode/land-config.json)
workbench: Option<String>Override workbench type
node_version: Option<String>Override Node.js version
environment: Option<String>Override Node.js environment
dependency: Option<String>Override dependency source
env_override: Vec<(String, String)>Override environment variables (key=value pairs)
hot_reload: boolEnable hot-reload (default: true for dev runs)
watch: boolEnable watch mode (default: true for dev runs)
live_reload_port: u16Live-reload port
dry_run: boolEnable dry-run mode (show config without running)
verbose: boolEnable verbose output
merge_env: boolMerge with shell environment (default: true)
run_args: Vec<String>Additional run arguments (passed through to run command)
Implementations§
Source§impl Cli
impl Cli
Sourcefn execute_command(
&self,
command: &Commands,
config: &LandConfig,
) -> Result<(), String>
fn execute_command( &self, command: &Commands, config: &LandConfig, ) -> Result<(), String>
Execute a subcommand
Sourcefn execute_run(
&self,
profile_name: &str,
config: &LandConfig,
dry_run: bool,
) -> Result<(), String>
fn execute_run( &self, profile_name: &str, config: &LandConfig, dry_run: bool, ) -> Result<(), String>
Execute a run with the specified profile
Sourcefn execute_list_profiles(
&self,
config: &LandConfig,
verbose: bool,
) -> Result<(), String>
fn execute_list_profiles( &self, config: &LandConfig, verbose: bool, ) -> Result<(), String>
List all available profiles
Sourcefn execute_show_profile(
&self,
profile_name: &str,
config: &LandConfig,
) -> Result<(), String>
fn execute_show_profile( &self, profile_name: &str, config: &LandConfig, ) -> Result<(), String>
Show details for a specific profile
Sourcefn execute_validate_profile(
&self,
profile_name: &str,
config: &LandConfig,
) -> Result<(), String>
fn execute_validate_profile( &self, profile_name: &str, config: &LandConfig, ) -> Result<(), String>
Validate a profile’s configuration
Sourcefn execute_resolve(
&self,
profile_name: &str,
config: &LandConfig,
_format: Option<String>,
) -> Result<(), String>
fn execute_resolve( &self, profile_name: &str, config: &LandConfig, _format: Option<String>, ) -> Result<(), String>
Resolve a profile to its resolved configuration
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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 Cli
impl FromArgMatches for Cli
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.