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

[FEATURE]: Add script alternative to command in exec task #5557

Open
johnlane opened this issue Dec 13, 2023 · 0 comments
Open

[FEATURE]: Add script alternative to command in exec task #5557

johnlane opened this issue Dec 13, 2023 · 0 comments

Comments

@johnlane
Copy link

Feature Request

Background / Motivation

Writing tasks with multiple command and/or arguments is cumbersome and error-prone when adding to a command list. Compare with Gitlab CI jobs.

What should the user be able to do?

Instead of writing

command: [ 'ls', '-l']

It would be convenient to write

script: 
    - ls -l

It would allow multiple lines:

script:
    - ls -l
    - cat /var/log/messages

or even

script:
    - |
    ls -l
    cat /var/log/messages

(I used script here because (a) it's familiar and (b) it means command can remain as-is.)

Why do they want to do this? What problem does it solve?

This would greatly simplify entry of task commands.

Suggested Implementation(s)

As above

How important is this feature for you/your team?

🌵 Not having this feature makes using Garden painful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant