runUpdate static method
Run the update command
Implementation
static Future<bool> runUpdate() async {
try {
final result = await Process.run(
'dart',
<String>['pub', 'global', 'activate', 'smartpub'],
runInShell: true,
);
return result.exitCode == 0;
} catch (e) {
return false;
}
}