- 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
13 lines
387 B
TypeScript
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());
|
|
}
|