Skip to content

Commit

Permalink
Expose toplevel as a command (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdm authored Aug 19, 2021
1 parent 9f2ddc0 commit cd7a43f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
// @dart=2.10

import 'package:args/command_runner.dart';
import 'src/command_runner.dart';
import 'src/pub_embeddable_command.dart';
export 'src/executable.dart'
show getExecutableForCommand, CommandResolutionFailedException;

/// Returns a [Command] for pub functionality that can be used by an embedding
/// CommandRunner.
Command<int> pubCommand() => PubEmbeddableCommand();

/// Support for the `pub` toplevel command.
@Deprecated('Use [pubCommand] instead.')
CommandRunner<int> deprecatedpubCommand() => PubCommandRunner();

0 comments on commit cd7a43f

Please sign in to comment.