craftcms / nitro

Speedy local dev environment for @craftcms.
https://getnitro.sh
MIT License
178 stars 24 forks source link

Add optional --command arg #441

Closed timkelty closed 2 years ago

timkelty commented 2 years ago

With this change you could now run:

nitro run --image node:10 --command 'npm install --prefix /app/'

Note that it is optional, so if you command doesn't need flags, you can run as before, eg:

nitro run --image node:10 ls ./usr