Skip to content

Commit

Permalink
Make watch command require tasks argument
Browse files Browse the repository at this point in the history
  • Loading branch information
takaebato committed Dec 10, 2024
1 parent 11b6c37 commit f17e234
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/turborepo-lib/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1469,10 +1469,15 @@ pub async fn run(

Ok(query)
}
Command::Watch(_) => {
Command::Watch(execution_args) => {
let event = CommandEventBuilder::new("watch").with_parent(&root_telemetry);
event.track_call();
let base = CommandBase::new(cli_args, repo_root, version, color_config)?;
let base = CommandBase::new(cli_args.clone(), repo_root, version, color_config)?;

if execution_args.tasks.is_empty() {
print_potential_tasks(base, event).await?;
return Ok(1);
}

let mut client = WatchClient::new(base, event).await?;
if let Err(e) = client.start().await {
Expand Down

0 comments on commit f17e234

Please sign in to comment.