diff --git a/cli.ts b/cli.ts index 34d04e45..05bf43ee 100644 --- a/cli.ts +++ b/cli.ts @@ -13,7 +13,6 @@ import { DependencyUpdate, execute, parse, - resolveLatestVersion, write, } from "./mod.ts"; @@ -84,13 +83,8 @@ const main = new Command() } }); -async function versionCommand() { - const version = parse(import.meta.url).version ?? - await $.progress("Fetching version info").with(async () => - await resolveLatestVersion( - parse(new URL("https://deno.land/x/molt/cli.ts")), - ).then((latest) => latest?.version) ?? "unknown" - ); +function versionCommand() { + const version = parse(import.meta.url).version ?? "dev"; console.log(version); } diff --git a/test/snapshots/cli.ts.snap b/test/snapshots/cli.ts.snap index a63ed395..5f02badd 100644 --- a/test/snapshots/cli.ts.snap +++ b/test/snapshots/cli.ts.snap @@ -65,14 +65,11 @@ Options: snapshot[`cli - "molt --help" 2`] = `""`; snapshot[`cli - "molt --version" 1`] = ` -"0.17.0 +"dev " `; -snapshot[`cli - "molt --version" 2`] = ` -"Fetching version info -" -`; +snapshot[`cli - "molt --version" 2`] = `""`; snapshot[`cli - "molt not_exist.ts" 1`] = `""`;