Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run_opts to SSHKit.run with default empty list #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

carterbryden
Copy link

@carterbryden carterbryden commented Jun 26, 2020

This would allow us to do things like setup a custom capture function for messages while still getting to use the higher level contexts abstraction.

Description

Added a 3rd arg to SSHKit.exe that defaults to an empty list for run options, to be used with SSHKit.SSH.run underneath.

Motivation and Context

This issue reply explained how to use the underlying functions, but I'd really like to be able to keep using the conexts abstraction. This should let me do both.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [x ] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

Haven't updated docs or tests because I think the existing ones already cover this.

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (with unit and/or functional tests).
  • I have added a note to CHANGELOG.md if necessary (in the ## master section).

This would allow us to do things like setup a custom capture function for messages while still getting to use the higher level contexts abstraction.
Copy link
Contributor

@pmeinhardt pmeinhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @carterbryden, thanks a lot! 🥳

It would be great if you could add a unit test for this addition to ensure it's working properly and it won't accidentally break in the future. 💚

Please let us know if you need any support or pointers. 🙂

@pmeinhardt pmeinhardt changed the base branch from master to main December 12, 2020 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants