run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
Future<int> run() async {
final term = argResults!['query'] as String;
final pId = await requireProjectIdAsync();
final client = container.read(translationServiceClientProvider);
final results = await client.getTranslationsByProjectSearch(
ProjectSearch(
projectId: pId,
term: term,
),
options: getCallOptions(requireUser: false),
);
printOutput(results);
return 0;
}