OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library pub.command.global; | |
6 | |
7 import '../command.dart'; | 5 import '../command.dart'; |
8 import 'global_activate.dart'; | 6 import 'global_activate.dart'; |
9 import 'global_deactivate.dart'; | 7 import 'global_deactivate.dart'; |
10 import 'global_list.dart'; | 8 import 'global_list.dart'; |
11 import 'global_run.dart'; | 9 import 'global_run.dart'; |
12 | 10 |
13 /// Handles the `global` pub command. | 11 /// Handles the `global` pub command. |
14 class GlobalCommand extends PubCommand { | 12 class GlobalCommand extends PubCommand { |
15 String get name => "global"; | 13 String get name => "global"; |
16 String get description => "Work with global packages."; | 14 String get description => "Work with global packages."; |
17 String get invocation => "pub global <subcommand>"; | 15 String get invocation => "pub global <subcommand>"; |
18 | 16 |
19 GlobalCommand() { | 17 GlobalCommand() { |
20 addSubcommand(new GlobalActivateCommand()); | 18 addSubcommand(new GlobalActivateCommand()); |
21 addSubcommand(new GlobalDeactivateCommand()); | 19 addSubcommand(new GlobalDeactivateCommand()); |
22 addSubcommand(new GlobalListCommand()); | 20 addSubcommand(new GlobalListCommand()); |
23 addSubcommand(new GlobalRunCommand()); | 21 addSubcommand(new GlobalRunCommand()); |
24 } | 22 } |
25 } | 23 } |
OLD | NEW |