MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / updatePlugin

Function updatePlugin

utils/storage_manager.mjs:67–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67function updatePlugin() {
68 try {
69 const prefix = execSync('npm prefix').toString().trim();
70 const pluginPath = join(prefix, 'src/plugins/terminal');
71
72 execSync('cordova plugin remove com.foxdebug.acode.rk.exec.terminal', { stdio: 'inherit' });
73 execSync(`cordova plugin add "${pluginPath}"`, { stdio: 'inherit' });
74
75 console.log('✅ Plugin updated successfully.');
76 } catch (err) {
77 console.error(err.message);
78 process.exit(1);
79 }
80}
81
82async function handleAnswer(answer) {
83 answer = answer.trim().toLowerCase();

Callers 1

handleAnswerFunction · 0.85

Calls 5

logMethod · 0.80
exitMethod · 0.80
joinFunction · 0.50
toStringMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected