Skip to content

Commit

Permalink
fix(watch): watch command require tasks argument (#9598)
Browse files Browse the repository at this point in the history
### Description

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
takaebato authored Dec 11, 2024
1 parent 234117e commit ffd4679
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 ffd4679

Please sign in to comment.