run method
Executes the upload command.
It parses the command-line arguments, retrieves the client ID and various skip flags, and then calls the uploadApps function to initiate the app upload process.
Implementation
@override
Future<void> run() async {
final clientId = argResults![ClonifyCommandOptions.clientId.name];
final skipAll = argResults![ClonifyCommandFlags.skipAll.name];
final skipAndroidUploadCheck =
argResults![ClonifyCommandFlags.skipAndroidUploadCheck.name];
final skipIOSUploadCheck =
argResults![ClonifyCommandFlags.skipIOSUploadCheck.name];
try {
if (clientId != null) {
await uploadApps(
clientId,
skipAll: skipAll,
skipAndroidUploadCheck: skipAndroidUploadCheck,
skipIOSUploadCheck: skipIOSUploadCheck,
);
}
} catch (error) {
throw CustomException(Messages.failedToUploadClone(clientId, error));
}
}