Skip to content

Split arguments from command #1

@piranna

Description

@piranna

Instead of a string, return an object (maybe with a .toString() function?) that has separately the command from its arguments, and ideally a needSudo attribute to know if its needed. This would allow more flexibility on its usage, specially regarding to its execution later with child_process.spawn(). I would be able to do this and other optimization and send a pull-request if you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions