run method
Runs this command.
The return value is wrapped in a Future
if necessary and returned by
CommandRunner.runCommand
.
Implementation
@override
Future<T> run() async {
validateOutputDirectoryArg();
if (!validatePackageName(packageName)) {
throw FormatException('"$packageName" is not a valid Dart package name.\n\n'
'See https://dart.dev/tools/pub/pubspec#name for more information.');
}
if (!validateOrg()) {
throw FormatException('"${stringArg('org')}" is not a valid org name\n\n',
'See https://en.wikipedia.org/wiki/Uniform_Type_Identifier for more information');
}
return successValue;
}