EasyEngine / shell-command

4 stars 7 forks source link

Extend shell to accomodate all container services for a site #2

Closed mrrobot47 closed 6 years ago

mrrobot47 commented 6 years ago

Currently, ee shell brings up the shell of the site's php container, where the wp commands, composer etc., can be run.

Need to add provision such that shell of any service of that site can be brought up with choice of user. php container shell can be default if no service is specified.

ee shell example.com --service=nginx
ee shell example.com --service=php --user=root

Also, capability to run certain commands non-interactive:

ee shell example.com --command='wp post delete $(wp post list --post_type='post' --format=ids)'
ee shell example.com --service=nginx --command='nginx -t && nginx -s reload'