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

Restructure Kino.SSH API #8

Open
jannikbecher opened this issue Apr 3, 2024 · 0 comments
Open

Restructure Kino.SSH API #8

jannikbecher opened this issue Apr 3, 2024 · 0 comments

Comments

@jannikbecher
Copy link
Owner

I looked into sshex to get some ideas.

KinoSSH works like this:

Kino.SSH.connect()

renders a new xterm, starts a connections and opens a channel with pty

Kino.SSH.open_channel()/close_channel()

openes a new channel to communicate with the open connection

Kino.SSH.run()

runs a command inside the specific channel
doesn't wait for a response

Kino.SSH.cmd!()

waits for the response

Kino.SSH.stream()

listens for ssh data. Can be consumed by Kino.listen()

This was referenced Apr 3, 2024
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

No branches or pull requests

1 participant