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

Issue 10214006: Refactor command code and add support for --help and --version. (Closed)

Created:
8 years, 8 months ago by Bob Nystrom
Modified:
8 years, 8 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactor command code and add support for --help and --version. Committed: https://code.google.com/p/dart/source/detail?r=6985

Patch Set 1 #

Total comments: 15

Patch Set 2 : Respond to review. #

Patch Set 3 : Add comment. #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix long line. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -80 lines) Patch
M utils/pub/command_list.dart View 1 2 3 1 chunk +17 lines, -11 lines 0 comments Download
M utils/pub/command_update.dart View 1 2 3 1 chunk +22 lines, -19 lines 0 comments Download
A utils/pub/command_version.dart View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M utils/pub/package.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/pub.dart View 1 2 3 4 5 chunks +35 lines, -25 lines 0 comments Download
M utils/tests/pub/pub_test.dart View 1 2 3 4 5 2 chunks +32 lines, -18 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bob Nystrom
This includes the changes from the previous pub update. You can ignore those. I'll rebase ...
8 years, 8 months ago (2012-04-25 00:38:18 UTC) #1
nweiz
https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list.dart File utils/pub/command_list.dart (right): https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list.dart#newcode7 utils/pub/command_list.dart:7: String get description() => 'print the contents of repositories'; ...
8 years, 8 months ago (2012-04-25 20:49:41 UTC) #2
Bob Nystrom
Thanks! https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list.dart File utils/pub/command_list.dart (right): https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list.dart#newcode7 utils/pub/command_list.dart:7: String get description() => 'print the contents of ...
8 years, 8 months ago (2012-04-25 22:56:40 UTC) #3
nweiz
lgtm https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list.dart File utils/pub/command_list.dart (right): https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list.dart#newcode7 utils/pub/command_list.dart:7: String get description() => 'print the contents of ...
8 years, 8 months ago (2012-04-25 23:09:22 UTC) #4
Bob Nystrom
8 years, 8 months ago (2012-04-26 00:22:13 UTC) #5
Thanks!

https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list...
File utils/pub/command_list.dart (right):

https://chromiumcodereview.appspot.com/10214006/diff/1/utils/pub/command_list...
utils/pub/command_list.dart:7: String get description() => 'print the contents
of repositories';
On 2012/04/25 23:09:22, nweiz wrote:
> On 2012/04/25 22:56:40, Bob Nystrom wrote:
> > On 2012/04/25 20:49:41, nweiz wrote:
> > > This isn't really accurate... currently what this does is prints the
> contents
> > of
> > > the cache.
> > 
> > Right.
> > 
> > > 
> > > I'm not sure that's actually the most useful behavior, though. The cache
> > should
> > > be largely transparent to the user. It may make sense as an option, but it
> > seems
> > > like a more useful default would be to print the transitive dependency
list
> of
> > > the current package.
> > 
> > Yeah, this command basically exists so that we can get some information out
of
> > pub for some of the early integration tests. If you'd like, we can give it a
> > more obvious temp name like "debuglist". It's basically here so that I could
> > write tests of the basic package loading code before any other useful
commands
> > had been written.
> 
> Oh, sure. Maybe just add a comment about that here.

Done.

Powered by Google App Engine
This is Rietveld 408576698