Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text of multi line description not aligned when running task --list #1350

Closed
JakeSummers opened this issue Sep 26, 2023 · 0 comments · Fixed by #1656
Closed

Text of multi line description not aligned when running task --list #1350

JakeSummers opened this issue Sep 26, 2023 · 0 comments · Fixed by #1656

Comments

@JakeSummers
Copy link

This feature request is really an exact duplicate of #133 but I don't have permission to reopen the issue

It seems like 10% of my targets are complex and require multiple lines to explain what they do. It would be awesome if multi-line descriptions could be supported.

Current behaviour:

Running task --list, for this file:

version: '3'

tasks:
  long-doc:
    desc: |
      Most tasks don't require a long message but
      10% of targets need a longer message.  It would
      be preferable if the alignment was more crisp.
    cmds:
      - echo 'Other conversations!'

  foo:
    desc: hi
    summary: Using short is best
    cmds:
      - echo "hi"

Results in this:

$ task --list
task: Available tasks for this project:
* foo:            hi
* long-doc:       Most tasks don't require a long message but
10% of targets need a longer message.  It would
be preferable if the alignment was more crisp.

It would be much more readable if it did this:

$ task --list
task: Available tasks for this project:
* foo:            hi
* long-doc:       Most tasks don't require a long message but
                  10% of targets need a longer message.  It would
                  be preferable if the alignment was more crisp.

I know that the summary feature #180 has been added since #133. This is a nice feature but in my view, it plays a different role. :)

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Sep 26, 2023
@JakeSummers JakeSummers changed the title Text of multi line description not aligned Text of multi line description not aligned when running task --list Sep 26, 2023
@pd93 pd93 linked a pull request Jun 28, 2024 that will close this issue
@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants