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

Is there an easy way to get the exitCode when use SSHClient.run()? #99

Open
falrom opened this issue Apr 29, 2024 · 0 comments
Open

Is there an easy way to get the exitCode when use SSHClient.run()? #99

falrom opened this issue Apr 29, 2024 · 0 comments

Comments

@falrom
Copy link

falrom commented Apr 29, 2024

I can get what I want with the execute function. But run seems to be a more semantic interface.
Perhaps the run function can return a tuple like Future<(int?, Uint8List)> (that's exactly what I'm doing now). It's a bit frustrating to have to use execute when you need to determine whether an command was executed successfully.
Just a suggestion.

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