Skip to content

Commit

Permalink
Enable the --summarize flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar committed Mar 31, 2023
1 parent f204540 commit 64307e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions cli/integration_tests/no_args.t
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Make sure exit code is 2 when no args are passed
--remote-only Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache
--scope <SCOPE> Specify package(s) to act as entry points for task execution. Supports globs
--since <SINCE> Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed
--summarize [<SUMMARIZE>] Generate a summary of the turbo run [env: TURBO_RUN_SUMMARY=] [possible values: true, false]
--log-prefix <LOG_PREFIX> Use "none" to remove prefixes from task logs. Note that tasks running in parallel interleave their logs and prefix is the only way to identify which task produced a log [possible values: none]
[1]
$ ${TURBO} run
Expand Down
2 changes: 2 additions & 0 deletions cli/integration_tests/turbo_help.t
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Test help flag
--remote-only Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache
--scope <SCOPE> Specify package(s) to act as entry points for task execution. Supports globs
--since <SINCE> Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed
--summarize [<SUMMARIZE>] Generate a summary of the turbo run [env: TURBO_RUN_SUMMARY=] [possible values: true, false]
--log-prefix <LOG_PREFIX> Use "none" to remove prefixes from task logs. Note that tasks running in parallel interleave their logs and prefix is the only way to identify which task produced a log [possible values: none]


Expand Down Expand Up @@ -123,6 +124,7 @@ Test help flag
--remote-only Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache
--scope <SCOPE> Specify package(s) to act as entry points for task execution. Supports globs
--since <SINCE> Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed
--summarize [<SUMMARIZE>] Generate a summary of the turbo run [env: TURBO_RUN_SUMMARY=] [possible values: true, false]
--log-prefix <LOG_PREFIX> Use "none" to remove prefixes from task logs. Note that tasks running in parallel interleave their logs and prefix is the only way to identify which task produced a log [possible values: none]

Test help flag for link command
Expand Down
9 changes: 2 additions & 7 deletions crates/turborepo-lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,8 @@ pub struct RunArgs {
/// to identify which packages have changed.
#[clap(long)]
pub since: Option<String>,
/// Opt in to using the turbo run summary.
#[clap(
long,
hide = true,
env = "TURBO_RUN_SUMMARY",
default_missing_value = "true"
)]
/// Generate a summary of the turbo run
#[clap(long, env = "TURBO_RUN_SUMMARY", default_missing_value = "true")]
pub summarize: Option<Option<bool>>,
/// Use "none" to remove prefixes from task logs. Note that tasks running
/// in parallel interleave their logs and prefix is the only way
Expand Down

0 comments on commit 64307e5

Please sign in to comment.