Skip to content

Add initial support for build_runner serve #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 12, 2018
Merged

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

/// All available top level commands.
CommandRunner webdevCommandRunner() {
final commandRunner =
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.

2 participants