Skip to content

An output: cmdΒ #900

@max-sixty

Description

@max-sixty

I frequently want to update the user with the status of the task, from the taskfile. For example:

    cmds:
      ...
      - cmd: echo "βœ… Success! setup-dev complete! πŸ˜‡πŸš€"
        silent: true

There's some awkwardness with using echo though:

  • It's inline with the other output, which is sometimes quite verbose. We can use emojis to try and highlight it. But ideally it would be a different color, or some other semantic difference.
  • We always want silent: true, because there's no need to also print the command (we see the output anyway)

So the question / proposal is to instead have something similar to output syntax but as a task:

    cmds:
      ...
      - output: βœ… Success! setup-dev complete! πŸ˜‡πŸš€

...which would then print in a different color, or with a prefix, or whatever ideas people have.

Clearly this isn't a problem that makes task otherwise unusable β€” it would be a small QoL feature. But I wanted to raise regardless, in the case that others agree it would be positive.

Thanks as ever!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions