runLogsCli function
CLI adapter for fdb logs.
Validates arguments, delegates to runLogs, then pipes the resulting LogsStream to stdout. Handles SIGINT for follow mode by calling LogsStream.cancel so the stream terminates cleanly.
Implementation
Future<int> runLogsCli(List<String> args) => runCliAdapter(
ArgParser()
..addOption('tag', help: 'Filter lines containing this string')
..addOption('last', defaultsTo: '50', help: 'Show last N lines (snapshot mode)')
..addFlag('follow', negatable: false, help: 'Stream live log updates'),
args,
_execute,
);