From 403e047c0c376229244a5605d5c52eb1699acd4a Mon Sep 17 00:00:00 2001 From: "Max P." Date: Wed, 21 May 2025 03:47:14 +0200 Subject: [PATCH] feat(cli): use dynamic version retrieval - Replace hardcoded version with dynamic retrieval using `getVersion` - Improves maintainability by avoiding manual version updates --- src/cli/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/main.ts b/src/cli/main.ts index 20381bb..64f3098 100644 --- a/src/cli/main.ts +++ b/src/cli/main.ts @@ -1,9 +1,10 @@ import { Command } from '@cliffy/command'; import { createCommand } from './create.ts'; +import { getVersion } from '../utils/mod.ts'; await new Command() .name('systemd-timer') - .version('0.1.0') + .version(await getVersion()) .description('CLI Tool zum Erzeugen von systemd .timer und .service Units') .command('create', createCommand) .parse(Deno.args);