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

Do not execute Multiple cmd #66

Closed
manigandaprabu opened this issue Jul 29, 2015 · 6 comments
Closed

Do not execute Multiple cmd #66

manigandaprabu opened this issue Jul 29, 2015 · 6 comments
Assignees
Labels

Comments

@manigandaprabu
Copy link

exec: {
echo_something: 'echo "This is something"',
cmd: 'lessc --source-map=main.map less/main.less css/main.css',
cmd: 'lessc --source-map=file2.map less/file2.less css/file2.css'
},
which execute last cmd only

@ghost
Copy link

ghost commented Jan 19, 2016

Use && between the commands in the same line

exec: {
cmd: 'lessc --source-map=main.map less/main.less css/main.css && lessc --source-map=file2.map less/file2.less css/file2.css'
},

@gwicksted gwicksted self-assigned this May 12, 2016
@gwicksted
Copy link
Collaborator

Closing but will enhance documentation to address this.

@cobbdb
Copy link

cobbdb commented May 27, 2016

Would be very nice if cmd also accepted a set of commands:

mytask: {
    cmd: [
        'echo first',
        'echo second'
    ]
}

@gwicksted
Copy link
Collaborator

@cobbdb I'll look into adding this. In the meantime, you can have multiple named tasks under exec or concatenate them together as demonstrated above.

@cobbdb
Copy link

cobbdb commented Jun 14, 2017

Just saw comment in #73.. so simple love it. For others searching, here is my example from above updated to work for current version:

mytask: {
    cmd: [
        'echo first',
        'echo second'
    ].join('&&')
}

@importerror
Copy link

Direct execution of the multiple commands:
mytask: [ 'echo first', 'echo second' ]

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

No branches or pull requests

4 participants