LaravelCollective / remote

Remote SSH Access for the Laravel Framework
MIT License
276 stars 106 forks source link

Difference between run and task? #61

Closed Cannonb4ll closed 4 years ago

Cannonb4ll commented 6 years ago

What is the actual difference between using run() or task()? The documentation say's task() wil run the commands after each other, but run() does the same.

If you define several commands inside run() like:

$commands = [
    'ls',
    'df -h'
];

The actual linux command is: ls && df -h

But what does task do different?