use pkg version

This commit is contained in:
Chris Wanstrath 2026-02-09 09:49:03 -08:00
parent 31d9ad4520
commit 4b3ab78ae4

View File

@ -1,6 +1,7 @@
import { program } from 'commander' import { program } from 'commander'
import color from 'kleur' import color from 'kleur'
import pkg from '../../package.json'
import { import {
cleanApp, cleanApp,
configShow, configShow,
@ -33,7 +34,7 @@ import {
program program
.name('toes') .name('toes')
.version('v0.0.4', '-v, --version') .version(`v${pkg.version}`, '-v, --version')
.addHelpText('beforeAll', (ctx) => { .addHelpText('beforeAll', (ctx) => {
if (ctx.command === program) { if (ctx.command === program) {
return color.bold().cyan('\n🐾 Toes') + color.gray(' - personal web appliance\n') return color.bold().cyan('\n🐾 Toes') + color.gray(' - personal web appliance\n')