Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Issue 797473002: Add a CommandRunner class for dispatching commands to args. (Closed)

Created:
6 years ago by nweiz
Modified:
6 years ago
Reviewers:
Bob Nystrom, Sean Eagan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a CommandRunner class for dispatching commands to args. This was extracted from pub's dispatching logic. R=rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=42418

Patch Set 1 #

Total comments: 59

Patch Set 2 : Code review changes #

Total comments: 34

Patch Set 3 : Code review changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+919 lines, -189 lines) Patch
M pkg/args/CHANGELOG.md View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/args/README.md View 1 2 2 chunks +72 lines, -8 lines 0 comments Download
A pkg/args/lib/command_runner.dart View 1 2 1 chunk +385 lines, -0 lines 2 comments Download
A pkg/args/lib/src/help_command.dart View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A + pkg/args/lib/src/usage_exception.dart View 1 chunk +6 lines, -7 lines 0 comments Download
A + pkg/args/lib/src/utils.dart View 1 1 chunk +4 lines, -8 lines 0 comments Download
M pkg/args/pubspec.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
A + pkg/args/test/command_parse_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A pkg/args/test/command_runner_test.dart View 1 2 1 chunk +260 lines, -0 lines 0 comments Download
M pkg/args/test/command_test.dart View 1 2 1 chunk +66 lines, -163 lines 0 comments Download
M pkg/args/test/utils.dart View 1 2 2 chunks +68 lines, -1 line 0 comments Download

Messages

Total messages: 20 (2 generated)
nweiz
6 years ago (2014-12-11 01:15:18 UTC) #2
Bob Nystrom
https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md File pkg/args/README.md (right): https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md#newcode215 pkg/args/README.md:215: // The [name] and [description] fields must be set ...
6 years ago (2014-12-11 20:25:31 UTC) #3
nweiz
Code review changes
6 years ago (2014-12-11 23:55:12 UTC) #4
nweiz
https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md File pkg/args/README.md (right): https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md#newcode215 pkg/args/README.md:215: // The [name] and [description] fields must be set ...
6 years ago (2014-12-11 23:55:24 UTC) #5
Sean Eagan
On 2014/12/11 01:15:18, nweiz wrote: Thanks for the cc! Why not a separate package? Why ...
6 years ago (2014-12-12 17:50:12 UTC) #6
Sean Eagan
https://chromiumcodereview.appspot.com/797473002/diff/1/pkg/args/lib/src/command_runner.dart File pkg/args/lib/src/command_runner.dart (right): https://chromiumcodereview.appspot.com/797473002/diff/1/pkg/args/lib/src/command_runner.dart#newcode70 pkg/args/lib/src/command_runner.dart:70: CommandRunner(this.executableName, this.description) { The executable name should rarely if ...
6 years ago (2014-12-12 17:50:32 UTC) #8
Bob Nystrom
https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md File pkg/args/README.md (right): https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md#newcode215 pkg/args/README.md:215: // The [name] and [description] fields must be set ...
6 years ago (2014-12-12 18:13:22 UTC) #9
Sean Eagan
On 2014/12/12 17:50:32, Sean Eagan wrote: > https://chromiumcodereview.appspot.com/797473002/diff/1/pkg/args/lib/src/command_runner.dart > File pkg/args/lib/src/command_runner.dart (right): > > https://chromiumcodereview.appspot.com/797473002/diff/1/pkg/args/lib/src/command_runner.dart#newcode70 ...
6 years ago (2014-12-12 18:24:56 UTC) #10
nweiz
On 2014/12/12 17:50:12, Sean Eagan wrote: > Thanks for the cc! > > Why not ...
6 years ago (2014-12-16 00:21:40 UTC) #11
nweiz
Code review changes
6 years ago (2014-12-16 02:07:31 UTC) #12
nweiz
https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md File pkg/args/README.md (right): https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md#newcode215 pkg/args/README.md:215: // The [name] and [description] fields must be set ...
6 years ago (2014-12-16 02:07:44 UTC) #13
Bob Nystrom
LGTM! https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md File pkg/args/README.md (right): https://codereview.chromium.org/797473002/diff/1/pkg/args/README.md#newcode215 pkg/args/README.md:215: // The [name] and [description] fields must be ...
6 years ago (2014-12-16 16:50:42 UTC) #14
Sean Eagan
On 2014/12/16 00:21:40, nweiz wrote: > The CommandRunner API is much more closely related to ...
6 years ago (2014-12-16 17:40:51 UTC) #15
Sean Eagan
https://chromiumcodereview.appspot.com/797473002/diff/20001/pkg/args/lib/command_runner.dart File pkg/args/lib/command_runner.dart (right): https://chromiumcodereview.appspot.com/797473002/diff/20001/pkg/args/lib/command_runner.dart#newcode54 pkg/args/lib/command_runner.dart:54: String get _usageWithoutDescription { On 2014/12/16 02:07:44, nweiz wrote: ...
6 years ago (2014-12-16 17:41:05 UTC) #16
Sean Eagan
On 2014/12/16 02:07:44, nweiz wrote: > https://codereview.chromium.org/797473002/diff/1/pkg/args/lib/src/command_runner.dart#newcode70 > pkg/args/lib/src/command_runner.dart:70: CommandRunner(this.executableName, > this.description) { > On ...
6 years ago (2014-12-16 18:37:24 UTC) #17
Sean Eagan
There's probably no chance of pub using unscripted, but just to demo some of the ...
6 years ago (2014-12-16 21:27:17 UTC) #18
nweiz
> I disagree, if command dispatch were not separate from arg parsing you could > ...
6 years ago (2014-12-17 00:04:59 UTC) #19
nweiz
6 years ago (2014-12-17 00:06:20 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 42418 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698