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

Issue 550643003: Add a --mode flag to pub run and pub global run. (Closed)

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

Description

Add a --mode flag to pub run and pub global run. pub run now defaults to --mode=debug for local executables. R=rnystrom@google.com BUG=20898 Committed: https://code.google.com/p/dart/source/detail?r=40384

Patch Set 1 #

Patch Set 2 : Add missing test files. #

Patch Set 3 : Fix usage tests #

Total comments: 5

Patch Set 4 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -144 lines) Patch
M sdk/lib/_internal/pub/lib/src/command/global_run.dart View 3 chunks +11 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/run.dart View 1 2 3 3 chunks +19 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/executable.dart View 3 chunks +14 lines, -4 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/global_packages.dart View 1 chunk +9 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/global/run/errors_if_outside_bin_test.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/global/run/missing_executable_arg_test.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/global/run/mode_test.dart View 1 1 chunk +58 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/run/errors_if_no_executable_is_given_test.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/run/errors_if_path_in_dependency_test.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/run/mode_test.dart View 1 chunk +84 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/barback.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/barback/asset_environment.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/command/global_run.dart View 3 chunks +13 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/command/run.dart View 3 chunks +51 lines, -21 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/executable.dart View 1 chunk +122 lines, -109 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/global_packages.dart View 1 chunk +5 lines, -2 lines 0 comments Download
A sdk/lib/_internal/pub_generated/test/global/run/mode_test.dart View 1 1 chunk +50 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub_generated/test/run/mode_test.dart View 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
nweiz
6 years, 3 months ago (2014-09-11 00:56:09 UTC) #1
Bob Nystrom
https://codereview.chromium.org/550643003/diff/40001/sdk/lib/_internal/pub/lib/src/command/run.dart File sdk/lib/_internal/pub/lib/src/command/run.dart (right): https://codereview.chromium.org/550643003/diff/40001/sdk/lib/_internal/pub/lib/src/command/run.dart#newcode28 sdk/lib/_internal/pub/lib/src/command/run.dart:28: '(defaults to "release" for dependencies, "debug" for entrypoint)'); Long ...
6 years, 3 months ago (2014-09-12 21:21:20 UTC) #2
nweiz
Code review changes
6 years, 3 months ago (2014-09-16 00:21:42 UTC) #3
nweiz
https://codereview.chromium.org/550643003/diff/40001/sdk/lib/_internal/pub/lib/src/command/run.dart File sdk/lib/_internal/pub/lib/src/command/run.dart (right): https://codereview.chromium.org/550643003/diff/40001/sdk/lib/_internal/pub/lib/src/command/run.dart#newcode28 sdk/lib/_internal/pub/lib/src/command/run.dart:28: '(defaults to "release" for dependencies, "debug" for entrypoint)'); On ...
6 years, 3 months ago (2014-09-16 00:22:15 UTC) #4
Bob Nystrom
lgtm https://codereview.chromium.org/550643003/diff/40001/sdk/lib/_internal/pub/lib/src/executable.dart File sdk/lib/_internal/pub/lib/src/executable.dart (right): https://codereview.chromium.org/550643003/diff/40001/sdk/lib/_internal/pub/lib/src/executable.dart#newcode48 sdk/lib/_internal/pub/lib/src/executable.dart:48: // Dependencies are only snapshotted in release mode, ...
6 years, 3 months ago (2014-09-16 19:51:11 UTC) #5
nweiz
6 years, 3 months ago (2014-09-17 18:33:03 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 40384 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698