Skip to content

Question #2

Description

@freeeborn

What happens if someone wants to use one cmd instance twice, like
Cmd.dir(s:true)();
Cmd.type("my file.txt")();

I would recommend to return new object instead of this, and make it a combination of the current object and arguments. This will also allow partial specification objects, like

Var gitpull = cmd.git.pull;
gitpull("./")();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions