run method
Runs this command.
The return value is wrapped in a Future
if necessary and returned by
CommandRunner.runCommand
.
Implementation
@override
Future<void> run() async {
await initializeObs();
final inputName = argResults!['inputName'] as String?;
final inputUuid = argResults!['inputUuid'] as String?;
if (inputName == null && inputUuid == null) {
throw UsageException(
'One of inputName or inputUuid must be provided.',
usage,
);
}
final inputSettingsResponse = await obs.inputs.getInputSettings(
inputName: inputName,
inputUuid: inputUuid,
);
print(inputSettingsResponse);
obs.close();
}