Skip to content

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

Open
@falrom

Description

@falrom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions