Skip to content

Support for custom "wrappers" #43

Open
@ravi

Description

@ravi

Per the documentation, there are convenience wrappers for common commands like ls. It would be very useful if this feature can be extended such that we can add custom wrappers, and even share them:

var result = transport.getuid('mylogin');
if( result.code === 0 && result.stdout !== 10000 )
    transport.abort("User 'mylogin' already exists with the wrong uid: " + result.stdout);

I realise stdoutin the above is a string, it contains a newline, etc, but I am ignoring that in the interest of keeping example simple. I hope you get what I am driving at.

Since this is a somewhat significant and philosophical issue, I am asking first if this is an interesting direction for the project, rather than sending a PR.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions