pubCommand function

Command<int> pubCommand({
  1. required bool isVerbose(),
})

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