pub struct Cli {
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 dry_run: bool,
pub verbose: bool,
pub merge_env: bool,
pub build_args: Vec<String>,
}Expand description
Land Build System - Configuration-based builds via Cargo
Fields§
§command: Option<Commands>§profile: Option<String>Build profile to use (shortcut for ‘build’ 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)
dry_run: boolEnable dry-run mode (show config without building)
verbose: boolEnable verbose output
merge_env: boolMerge with shell environment (default: true)
build_args: Vec<String>Additional build arguments (passed through to build 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_build(
&self,
profile_name: &str,
config: &LandConfig,
dry_run: bool,
) -> Result<(), String>
fn execute_build( &self, profile_name: &str, config: &LandConfig, dry_run: bool, ) -> Result<(), String>
Execute a build 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>
Report the [
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
Append to [
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error. Read more
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more