Files
systemd-timer/src/cli/main.ts
Max P. 2a13ee2539 refactor(cli): integrate i18n support across commands
- Centralize CLI text strings using the i18n module for localization
- Refactor `createCommand` and `createCli` to improve modularity
- Update logging and error messages to use translated strings
2025-05-28 18:09:52 +02:00

13 lines
387 B
TypeScript

import { Command } from '@cliffy/command';
import { getVersion } from '../utils/mod.ts';
import { t } from '../i18n/mod.ts';
import { createCommand } from './mod.ts';
export async function createCli() {
return new Command()
.name('systemd-timer')
.version(await getVersion())
.description(t('cli_description'))
.command('create', createCommand());
}