Skip to content

Question #2

@freeeborn

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("./")();

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