Show version in help

This commit is contained in:
Daniel Flanagan 2022-02-12 14:44:24 -06:00
parent 29a9190950
commit 1f01cf0295
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
1 changed files with 3 additions and 1 deletions

View File

@ -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 <plugin-name>")
console.info(" update-plugin <plugin-name>")