INNER CODE UNIT · JavaScript
UPDATE_CACHE_TTL_MS
alohe/quicky · index.js:84
const UPDATE_CACHE_TTL_MS = 24 * 60 * 60 * 1000;
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();