pubCommand function

Command<int> pubCommand({
  1. required bool isVerbose(),
  2. String category = '',
  3. FileSystem? fileSystem,
  4. Map<String, String>? environment,
  5. String? platformVersion,
  6. Stream<List<int>>? stdin,
  7. StreamSink<List<int>>? stdout,
  8. StreamSink<List<int>>? stderr,
  9. Client? httpClient,
})

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,
);