Skip to main content
Module

x/aleph/commands/upgrade.ts

The Full-stack Framework in Deno.
Very Popular
Go to Latest
File
import { checkVersion } from '../install.ts'import { VERSION } from '../version.ts'
export const helpMessage = `Usage: aleph upgrade <version>
Options: --version <version> The version to upgrade to -h, --help Prints help message`
export default async function (v = 'latest') { const version = await checkVersion(v) if (version === 'v' + VERSION) { console.log('Already up-to-date!') Deno.exit(0) }
const { install } = await import(`https://deno.land/x/aleph@${version}/install.ts`) await install(version)}