CheckUpdateCommand constructor
CheckUpdateCommand(
- Future<
CliContext> context()
Creates the command.
Implementation
CheckUpdateCommand(super.context) {
argParser
..addOption('package', abbr: 'p', help: 'Package name or id.')
..addOption('current', help: 'The version currently running.')
..addOption(
'channel',
abbr: 'c',
help: 'Channel to check. Defaults to the package\'s own default.',
allowed: ['dev', 'beta', 'release'],
)
..addOption(
'platform',
help:
'Platform to match an artifact for. Defaults to this machine '
'(${Platforms.current}); pass "any" to ignore platform.',
);
}