SnappCliCommandRunner constructor
SnappCliCommandRunner({
- required FlutterSdkManager flutterSdkManager,
Implementation
SnappCliCommandRunner({required this.flutterSdkManager})
: super(
'snapp_cli',
'A command-line tool to manage custom devices for flutter',
) {
// Add the device id option to all commands
argParser
..addFlag(
'verbose',
abbr: 'v',
help: 'Print verbose output.',
negatable: false,
)
..addOption(
deviceIdOption,
abbr: 'd',
help: 'Target device id or name (prefixes allowed).',
);
// Add the setup command to the command runner
addCommand(BootstrapCommand(flutterSdkManager: flutterSdkManager));
// Add the devices command to the command runner
addCommand(DevicesCommand(flutterSdkManager: flutterSdkManager));
// Create and manage SSH connections
addCommand(SshCommand(flutterSdkManager: flutterSdkManager));
}