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 _checkLanguageFolderPath();
if (argResults?['adg'] == true) {
await _handleAddWithGPT();
} else if (argResults?['eapi'] == true) {
await _editAPIKey();
} else if (argResults?['ep'] == true) {
_editPath();
} else if (argResults?['auto'] == true) {
_listener();
} else if (argResults?['ref'] == true) {
_updateDartClass();
} else if (argResults?['adm'] == true) {
_addManualy();
} else {
print(
'No valid flag provided. Use --help to see available options.'.red());
}
}