runScreenshotCli function
CLI adapter for fdb screenshot.
Parses --output <path> / -o <path> (defaults to defaultScreenshotPath)
and --full flag, delegates to captureScreenshot, then emits:
SCREENSHOT_SAVED=<path> (stdout, success)
SIZE=<n>B|<n.n>KB|<n.n>MB (stdout, success)
WARNING: … (stderr, zero or more, before tokens)
ERROR: … (stderr, failure)
Implementation
Future<int> runScreenshotCli(List<String> args) => runCliAdapter(_buildParser(), args, _execute);