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

Allow shorter syntax for tasks with default configuration #194

Closed
andreynering opened this issue Mar 30, 2019 · 3 comments
Closed

Allow shorter syntax for tasks with default configuration #194

andreynering opened this issue Mar 30, 2019 · 3 comments
Milestone

Comments

@andreynering
Copy link
Member

Instead of requiring tasks to be declared as:

version: '2'

tasks:
  foobar:
    cmds:
      - echo "something"

We could allow:

version: '3'

tasks:
  foobar:
    - echo "some"
    - echo "thing"

Or even:

version: '3'

tasks:
  foobar: echo "something"

If users want to change any task configuration, they'd have to use the original form.

@Ilyes512
Copy link

I don’t actually mind having more verbose task. What I do miss is the option to configure silent: true globally instead of having to repeat it everywhere.

@andreynering andreynering added the v3 label Dec 8, 2019
andreynering added a commit that referenced this issue Dec 8, 2019
Closes #194
Closes #240

Co-authored-by: Jaedle <dennis.jekubczyk@gmail.com>
@andreynering
Copy link
Member Author

This was just implemented on the v3 branch in b7b752b.

@andreynering
Copy link
Member Author

What I do miss is the option to configure silent: true globally instead of having to repeat it everywhere.

@Ilyes512 Sorry, I forgot about your suggestion for a long time, but this is now done at 4bdfe64.

For future feature requests, it's better to open new issues so it's less likely it'll be forgotten.

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

No branches or pull requests

3 participants