INNER CODE UNIT · JavaScript
updateCLI
alohe/quicky · index.js:86
function updateCLI() {
try {
execSync("sudo npm install -g quicky", { stdio: "inherit" });
console.log(
chalk.green("Quicky has been upgraded to the latest version."),
);
} catch (error) {
console.error(chalk.red(`Failed to upgrade Quicky: ${error.message}`));
}
}
async function checkForUpdates() {
if (!process.stdout.isTTY) return;
try {
const now = Date.now();
if (fs.existsSync(UPDATE_CACHE_PATH)) {
const cached = JSON.parse(