pubCommand function

Command<int> pubCommand({
  1. required bool isVerbose(),
  2. String category = '',
})

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 = '',
}) => PubEmbeddableCommand(isVerbose, category);