GetCommand constructor

GetCommand()

Implementation

GetCommand() {
  addGlobalPubArgs(argParser);
  argParser.addFlag(
    'offline',
    help: 'Use cached packages instead of accessing the network',
  );
  argParser.addFlag(
    'dry-run',
    abbr: 'n',
    help: "Report what dependencies would change but don't change any",
  );
  argParser.addFlag(
    'enforce-lockfile',
    help:
        'Enforce pubspec.lock. Fail `pub get` if the current `pubspec.lock` '
        'does not exactly specify a valid resolution of `pubspec.yaml` '
        'or if any content hash of a hosted package has changed. '
        'Useful for CI or deploying to production',
    negatable: false,
  );
  argParser.addFlag(
    'precompile',
    help: 'Build executables in immediate dependencies',
  );
}