run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
void run() async {
List<String> args = argResults!.rest;
// Show usage if no arguments are provided.
showUsage(args.isEmpty, () => printUsage());
// Get the repository URL from the command line arguments.
final remote = args[0];
// Add the repository to the list of repositories.
Repositories.addRepo(remote);
// Display a success message.
out("{@green}Repo added to the list of repos{@end}");
}