Skip to content

Conversation

@nshahan
Copy link
Contributor

@nshahan nshahan commented Jan 11, 2018

Refactor shared arguments into abstract class.

Refactor shared arguments into abstract class.
@nshahan nshahan requested a review from alorenzen January 11, 2018 23:55
new CommandRunner('webdev', 'A tool to develop Dart web projects.');

commandRunner.addCommand(new BuildCommand());
commandRunner.addCommand(new ServeCommand());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor nit:
I prefer cascades here:

commandRunner
  ..addCommand(new BuildComand())
  ..addCommand(new ServeCommand());

I think this scales up better when we have 5 or 6 commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, done.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants