From 11b6878b65fbd314822b54f9eaaebec5f7289025 Mon Sep 17 00:00:00 2001 From: Weyert de Boer Date: Sun, 13 Mar 2022 12:50:51 +0000 Subject: [PATCH] fix: dump all contents of Outputs instead of all but the first one --- cli/internal/run/run.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cli/internal/run/run.go b/cli/internal/run/run.go index 1f0f06c2fe243..877accb941239 100644 --- a/cli/internal/run/run.go +++ b/cli/internal/run/run.go @@ -105,21 +105,21 @@ Options: execution. Supports globs. --cache-dir Specify local filesystem cache directory. (default "./node_modules/.cache/turbo") - --concurrency Limit the concurrency of task execution. Use 1 for + --concurrency Limit the concurrency of task execution. Use 1 for serial (i.e. one-at-a-time) execution. (default 10) --continue Continue execution even if a task exits with an error or non-zero exit code. The default behavior is to bail immediately. (default false) - --force Ignore the existing cache (to force execution). + --force Ignore the existing cache (to force execution). (default false) - --graph Generate a Dot graph of the task execution. - --global-deps Specify glob of global filesystem dependencies to + --graph Generate a Dot graph of the task execution. + --global-deps Specify glob of global filesystem dependencies to be hashed. Useful for .env and files in the root directory. Can be specified multiple times. --since Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed. - --team The slug of the turborepo.com team. + --team The slug of the turborepo.com team. --token A turborepo.com personal access token. --ignore Files to ignore when calculating changed files (i.e. --since). Supports globs. @@ -133,8 +133,8 @@ Options: (default false) --no-cache Avoid saving task results to the cache. Useful for development/watch tasks. (default false) - --dry/--dry-run[=json] List the packages in scope and the tasks that would be run, - but don't actually run them. Passing --dry=json or + --dry/--dry-run[=json] List the packages in scope and the tasks that would be run, + but don't actually run them. Passing --dry=json or --dry-run=json will render the output in JSON format. `) return strings.TrimSpace(helpText) @@ -318,7 +318,7 @@ func (c *RunCommand) runOperation(g *completeGraph, rs *runSpec, backend *api.La fmt.Fprintln(w, util.Sprintf(" ${GREY}Hash\t=\t%s\t${RESET}", task.Hash)) fmt.Fprintln(w, util.Sprintf(" ${GREY}Directory\t=\t%s\t${RESET}", task.Dir)) fmt.Fprintln(w, util.Sprintf(" ${GREY}Command\t=\t%s\t${RESET}", task.Command)) - fmt.Fprintln(w, util.Sprintf(" ${GREY}Outputs\t=\t%s\t${RESET}", strings.Join(task.Outputs[1:], ", "))) + fmt.Fprintln(w, util.Sprintf(" ${GREY}Outputs\t=\t%s\t${RESET}", strings.Join(task.Outputs, ", "))) fmt.Fprintln(w, util.Sprintf(" ${GREY}Log File\t=\t%s\t${RESET}", task.LogFile)) fmt.Fprintln(w, util.Sprintf(" ${GREY}Dependencies\t=\t%s\t${RESET}", strings.Join(task.Dependencies, ", "))) fmt.Fprintln(w, util.Sprintf(" ${GREY}Dependendents\t=\t%s\t${RESET}", strings.Join(task.Dependents, ", ")))