feat(cli): use dynamic version retrieval
- Replace hardcoded version with dynamic retrieval using `getVersion` - Improves maintainability by avoiding manual version updates
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user