Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a work in progress and not ready to be merged. I recommend reviewing this PR by each commit rather than the overall "files changed" view. Closes #8.
This PR adds a new type of remote called
script
, which allows the user to specify a custom shell script to use to start an REH before connecting to it.Remaining items:
listenScript
which is a short- or long-running process that is expected to listen on the configured host/port.listenScriptReady
which is a regex. When thelistenScript
outputs the regex, it is expected to be ready to accept connections. Note: thelistenScript
can also cleanly exit, but then Remote OSS cannot shut down the process when disconnecting.connectScript
which is a script that is expected to directly talk to an REH over stdio (required for environments like devcontainers where port forwards cannot be added ad-hoc).connectionToken
behavior:true
will cause Remote OSS to autogenerate a connection token instead of prompting, which will be provided to the scripts via an environment variable.REMOTE_HOST
,REMOTE_PORT
,REH_VERSION
,CONNECTION_TOKEN
.