runTapCli function

Future<int> runTapCli(
  1. List<String> args
)

CLI adapter for fdb tap.

Accepts:

  • --text <value>: Widget text selector
  • --key <value>: Widget key selector
  • --type <value>: Widget type selector
  • --index <n>: Widget index (when multiple matches)
  • --x <n>: X coordinate
  • --y <n>: Y coordinate
  • --at <x,y>: Coordinate shorthand (e.g. 200,400)
  • --timeout <secs>: Retry timeout in seconds (default: 5)
  • @N: Positional ref from fdb describe

Implementation

Future<int> runTapCli(List<String> args) async {
  final parser = ArgParser()
    ..addOption('text')
    ..addOption('key')
    ..addOption('type')
    ..addOption('index')
    ..addOption('x')
    ..addOption('y')
    ..addOption('at')
    ..addOption('timeout', defaultsTo: '5');

  return runCliAdapter(parser, args, _execute);
}