mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-17 17:56:46 +00:00
Create update.js
Added update logic Signed-off-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
This commit is contained in:
parent
3a4dad15de
commit
b1c93c60a5
17
bin/update.js
Normal file
17
bin/update.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
const { run, detectPip } = require("./checkEnv");
|
||||||
|
|
||||||
|
let pipCmd = detectPip();
|
||||||
|
if (!pipCmd) {
|
||||||
|
console.error("❌ pip not found, cannot update.");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("🔄 Updating SuperClaude from PyPI...");
|
||||||
|
const result = run(pipCmd, ["install", "--upgrade", "SuperClaude"], { stdio: "inherit" });
|
||||||
|
if (result.status !== 0) {
|
||||||
|
console.error("❌ Update failed.");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
console.log("✅ SuperClaude updated successfully!");
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user