Skip to content

Using summary with a for loop using tasks is not very descriptive. #1414

@hans-d

Description

@hans-d

Using summary with a for loop using tasks is not very descriptive.

vars:
  FROM_DIRS: a,b
tasks:
  example:
    desc: Something
    cmds:
      - for: { var: FROM_DIRS, split: ',' }
        task: next-task
        vars:
          DIR: '{{.ITEM}}'

task --summary example

task: example

Something

commands:
 - Task: next-task
 - Task: next-task

Might need vars or

      - for: { var: FROM_DIRS, split: ',' }
        task: next-task
        desc: '{{.task}} {{.ITEM}}'
        vars:
          DIR: '{{.ITEM}}'
  • Task version: v3.31.0
  • Operating system: Debian
  • Experiments enabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: formattingChanges related to output and formatting.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions