Open
Description
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 stdout
in 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.