runInteractive method

  1. @override
Future<void> runInteractive()
override

Entry point for interactive CLI execution.

Implementation

@override
Future<void> runInteractive() async {
  final key = Input(
    prompt: 'Enter localization key (camelCase):',
    validator: (input) =>
        input.isEmpty ? throw ValidationError('Key is required') : true,
  ).interact();

  final value = Input(
    prompt: 'Enter English value:',
    validator: (input) =>
        input.isEmpty ? throw ValidationError('Value is required') : true,
  ).interact();

  await _execute(key, value);
}