Skip to content

Commit

Permalink
Build CLI: Add UI mode cli arg to run command
Browse files Browse the repository at this point in the history
UI Mode was missing on the run command
  • Loading branch information
AmmarAbouZor committed Jan 22, 2025
1 parent acf5f4e commit 9a7c2fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cli/src/cli_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ pub enum Command {
#[arg(short, long, help = NO_FAIL_FAST_HELP_TEXT)]
no_fail_fast: bool,

#[arg(short, long, help = UI_LOG_OPTION_HELP_TEXT, value_enum)]
ui_mode: Option<UiMode>,

#[arg(short, long, help = ADDITIONAL_FEATURES_HELP_TEXT)]
additional_features: Option<Vec<AdditionalFeatures>>,
},
Expand Down
3 changes: 2 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,13 @@ async fn main_process(command: Command) -> Result<(), Error> {
Command::Run {
production,
no_fail_fast,
ui_mode,
additional_features,
} => {
let features = additional_features
.unwrap_or_else(|| UserConfiguration::get().additional_features.clone());
JobsState::init(JobsConfig::new(!no_fail_fast).additional_features(features));
init_tracker(Default::default());
init_tracker(ui_mode);
validate_dev_tools()?;
let results = jobs_runner::run(&[Target::App], JobType::Build { production }).await?;
(JobType::Run { production }, results)
Expand Down

0 comments on commit 9a7c2fb

Please sign in to comment.