run method
Runs this command.
The return value is wrapped in a Future
if necessary and returned by
CommandRunner.runCommand
.
Implementation
@override
run() {
try {
Logger.normal(startMessage);
//GET THE EXTENSION DETAILS FROM THE USER.
ExtensionDetails extensionDetails = getExtensionDetails();
//MANIPULATE THE HTML FILE.
htmlManipulation(extensionDetails: extensionDetails);
//MANIPULATE THE MANIFEST FILE.
manifestManipulation(extensionDetails: extensionDetails);
Logger.normal(endMessage);
Logger.success(
"\n🛠️ to build the extension run: flutter pub run extension_enabler build\n\n");
} catch (e) {
Logger.error("❌ ${e.toString()}");
}
}