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

Unified Diff: sdk/lib/_internal/pub/bin/pub.dart

Issue 301063002: First stab at "pub run" command. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add TODO. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/bin/pub.dart
diff --git a/sdk/lib/_internal/pub/bin/pub.dart b/sdk/lib/_internal/pub/bin/pub.dart
index 496a35b100bf610359b45799104e8056bd79693c..a10c09b62513a94192cd5bac1aaf07026f37b7c7 100644
--- a/sdk/lib/_internal/pub/bin/pub.dart
+++ b/sdk/lib/_internal/pub/bin/pub.dart
@@ -45,16 +45,14 @@ void main(List<String> arguments) {
}
switch (options['verbosity']) {
- case 'normal': log.showNormal(); break;
- case 'io': log.showIO(); break;
- case 'solver': log.showSolver(); break;
- case 'all': log.showAll(); break;
+ case 'normal': log.verbosity = log.Verbosity.NORMAL; break;
+ case 'io': log.verbosity = log.Verbosity.IO; break;
+ case 'solver': log.verbosity = log.Verbosity.SOLVER; break;
+ case 'all': log.verbosity = log.Verbosity.ALL; break;
default:
// No specific verbosity given, so check for the shortcut.
if (options['verbose']) {
- log.showAll();
- } else {
- log.showNormal();
+ log.verbosity = log.Verbosity.ALL;
}
break;
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698