Files
sdk/utils/pub/command_version.dart
T
nweiz@google.com bb468499d4 Don't extract the name of a package from its description.
Instead, the pubspec is considered to be the canonical name. This has the side
effect of requiring that all dependencies have a pubspec with a name field.

BUG=5205

Review URL: https://chromiumcodereview.appspot.com//10938003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12517 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 22:09:37 +00:00

16 lines
517 B
Dart

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library('command_version');
#import('pub.dart');
/** Handles the `version` pub command. */
class VersionCommand extends PubCommand {
String get description => 'print Pub version';
String get usage => 'pub version';
bool get requiresEntrypoint => false;
Future onRun() => printVersion();
}