File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ export 'src/executable.dart'
22
22
///
23
23
/// [isVerbose] should return `true` (after argument resolution) if the
24
24
/// embedding top-level is in verbose mode.
25
- Command <int > pubCommand ({required bool Function () isVerbose}) =>
26
- PubEmbeddableCommand (isVerbose);
25
+ Command <int > pubCommand ({
26
+ required bool Function () isVerbose,
27
+ String category = '' ,
28
+ }) => PubEmbeddableCommand (isVerbose, category);
27
29
28
30
/// Makes sure that [dir] /pubspec.yaml is resolved such that pubspec.lock and
29
31
/// .dart_tool/package_config.json are up-to-date and all packages are
Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ class PubEmbeddableCommand extends PubCommand implements PubTopLevel {
45
45
46
46
final bool Function () isVerbose;
47
47
48
- PubEmbeddableCommand (this .isVerbose) : super () {
48
+ @override
49
+ final String category;
50
+
51
+ PubEmbeddableCommand (this .isVerbose, this .category) : super () {
49
52
// This flag was never honored in the embedding but since it was accepted we
50
53
// leave it as a hidden flag to avoid breaking clients that pass it.
51
54
argParser.addFlag ('trace' , hide: true );
You can’t perform that action at this time.
0 commit comments