pubCommand function
Returns a Command for pub functionality that can be used by an embedding
CommandRunner.
isVerbose should return true (after argument resolution) if the
embedding top-level is in verbose mode.
Implementation
Command<int> pubCommand({
required bool Function() isVerbose,
String category = '',
f.FileSystem? fileSystem,
Map<String, String>? environment,
String? platformVersion,
Stream<List<int>>? stdin,
StreamSink<List<int>>? stdout,
StreamSink<List<int>>? stderr,
http.Client? httpClient,
}) => withOverrides(
() => PubEmbeddableCommand(
isVerbose,
category,
fileSystem: fileSystem,
environment: environment,
platformVersion: platformVersion,
stdin: stdin,
stdout: stdout,
stderr: stderr,
httpClient: httpClient,
),
fileSystem: fileSystem,
environment: environment,
platformVersion: platformVersion,
stdin: stdin,
stdout: stdout,
stderr: stderr,
httpClient: httpClient,
);