Skip to content

Commit cd7a43f

Browse files
authored
Expose toplevel as a command (#3081)
1 parent 9f2ddc0 commit cd7a43f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/pub.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@
55
// @dart=2.10
66

77
import 'package:args/command_runner.dart';
8+
import 'src/command_runner.dart';
89
import 'src/pub_embeddable_command.dart';
910
export 'src/executable.dart'
1011
show getExecutableForCommand, CommandResolutionFailedException;
1112

1213
/// Returns a [Command] for pub functionality that can be used by an embedding
1314
/// CommandRunner.
1415
Command<int> pubCommand() => PubEmbeddableCommand();
16+
17+
/// Support for the `pub` toplevel command.
18+
@Deprecated('Use [pubCommand] instead.')
19+
CommandRunner<int> deprecatedpubCommand() => PubCommandRunner();

0 commit comments

Comments
 (0)