UpdateVersionCommand constructor

UpdateVersionCommand({
  1. required Project project,
  2. required Printer printer,
})

Implementation

UpdateVersionCommand({
  required this.project,
  required this.printer,
}) {
  argParser.addOption(
    'template',
    abbr: 't',
    help: 'Replace version on file using string template and "[VERSION]"',
    defaultsTo: '',
  );
  argParser.addOption(
    'file',
    abbr: 'f',
    help: 'Set the file to update',
    defaultsTo: pubspecFile,
  );
}