From 1f01cf02950147043b2dcd61be90ae154b9e8932 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 12 Feb 2022 14:44:24 -0600 Subject: [PATCH] Show version in help --- src/core.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index 8eda920..e7bfa5a 100644 --- a/src/core.ts +++ b/src/core.ts @@ -1,5 +1,7 @@ import {yaml, fs, path, xdg} from "./deps.ts" +// TODO: can we bake VERSION to be the commit hash? +const VERSION = "0.3.0" const MANIFEST_URL = "https://git.lyte.dev/lytedev/pluggable-cli-deno/raw/branch/master/manifest.yml" const PLUGINS_DIR = path.join(xdg.cache(), "/poc-cli-installed-plugins") @@ -25,7 +27,7 @@ async function showConfig() { } async function usage() { - console.info("poc-cli: a CLI proof-of-concept") + console.info(`poc-cli: a CLI proof-of-concept (version ${VERSION})`) console.info(" -h, --help: Show usage") console.info(" install-plugin ") console.info(" update-plugin ")