From 02688861f4cc032f17017b50d548a0c5544ee9e3 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Fri, 6 Feb 2026 13:39:24 +0000 Subject: [PATCH] feat(cli): add CLI version display using commitinfo --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts/tsdocker.cli.ts | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index e774ac1..1f5ff74 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-02-06 - 1.7.0 - feat(cli) +add CLI version display using commitinfo + +- Imported commitinfo from './00_commitinfo_data.js' and called tsdockerCli.addVersion(commitinfo.version) to surface package/commit version in the Smartcli instance +- Change made in ts/tsdocker.cli.ts — small user-facing CLI enhancement; no breaking changes + ## 2026-02-06 - 1.6.0 - feat(docker) add support for no-cache builds and tag built images for local dependency resolution diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 02d0983..56120b1 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsdocker', - version: '1.6.0', + version: '1.7.0', description: 'develop npm modules cross platform with docker' } diff --git a/ts/tsdocker.cli.ts b/ts/tsdocker.cli.ts index 34fcc24..8708d18 100644 --- a/ts/tsdocker.cli.ts +++ b/ts/tsdocker.cli.ts @@ -8,8 +8,10 @@ import * as DockerModule from './tsdocker.docker.js'; import { logger, ora } from './tsdocker.logging.js'; import { TsDockerManager } from './classes.tsdockermanager.js'; import type { IBuildCommandOptions } from './interfaces/index.js'; +import { commitinfo } from './00_commitinfo_data.js'; const tsdockerCli = new plugins.smartcli.Smartcli(); +tsdockerCli.addVersion(commitinfo.version); export let run = () => { // Default command: run tests in container (legacy behavior)