mmmorris1975 / ssm-session-client

A golang implementation of the protocol used with AWS SSM sessions
MIT License
40 stars 21 forks source link

Execute a script before starting shell connection. #3

Closed ananthb closed 2 years ago

ananthb commented 2 years ago

I'd like the ability to execute a command before handing control of the shell over to the user. Would it make sense to extend StartShell with a new arg, or create a new function?

mmmorris1975 commented 2 years ago

Thank you for the suggestion. Does something like the changes in d52d35c7838895008aa0ea89ef30bef67f2c4ccf look like what you are requesting?

ananthb commented 2 years ago

That's exactly what I was thinking of!

mmmorris1975 commented 2 years ago

Released in v0.201.0

ananthb commented 2 years ago

Awesome!

ananthb commented 2 years ago

Works exactly as I'd hoped it would.