phase2 / rig

Outrigger command line tool
MIT License
11 stars 8 forks source link

Create 'rig ssh' command #159

Closed dnmurray closed 6 years ago

febbraro commented 6 years ago

This is awesome, thanks @dnmurray

dnmurray commented 6 years ago

@grayside how would I do a cd /data after the session starts? I used PassthruCommand() to get stdin passed through to the command so the user stays in the ssh session. I don't know how I could pass in a command to execute and then return control to the user's stdin. docker-machine ssh cd /data just returns to the OSX prompt when I test it manually (run one command and exit the ssh session).

grayside commented 6 years ago

Well, I see how to run a command, but not how to change directory inside: https://docs.docker.com/machine/reference/ssh/

docker-machine ssh dev ls /data
febbraro commented 6 years ago

Awesome, thanks Dave!