Skip to content

Conversation

@alorenzen
Copy link
Contributor

Closes #44

@alorenzen alorenzen requested a review from kevmoo April 24, 2018 21:56
Copy link
Member

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

Please add an entry to the changelog, too!


Future<int> runCore(String command) async {
Future<int> runCore(String command,
{List<String> extraArgs = const []}) async {
Copy link
Member

Choose a reason for hiding this comment

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

I'd leave the default value unset here...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

var buildRunnerScript = await _buildRunnerScript();

final arguments = [command]..addAll(getArgs());
final arguments = [command]..addAll(extraArgs)..addAll(getArgs());
Copy link
Member

Choose a reason for hiding this comment

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

and use extraArgs ?? const [] here.

Super paranoid handling of someone passing runCore('foo', extraArgs: null)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@alorenzen
Copy link
Contributor Author

PTAL.

@kevmoo
Copy link
Member

kevmoo commented Apr 27, 2018

@alorenzen – going to merge on red. Will fix the unrelated test failure in a follow-up

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