chore(cli): rename test files from .mts to .ts

This commit is contained in:
Mohamed Boudra
2026-01-28 23:34:22 +07:00
parent d51d70a6fd
commit d78c7d5e07
17 changed files with 264 additions and 94 deletions
+23 -8
View File
@@ -1,17 +1,32 @@
import { Command } from 'commander'
import { startCommand } from './start.js'
import { statusCommand } from './status.js'
import { stopCommand } from './stop.js'
import { restartCommand } from './restart.js'
import { runStatusCommand } from './status.js'
import { runStopCommand } from './stop.js'
import { runRestartCommand } from './restart.js'
import { withOutput } from '../../output/index.js'
export function createDaemonCommand(): Command {
const daemon = new Command('daemon')
.description('Manage the Paseo daemon')
const daemon = new Command('daemon').description('Manage the Paseo daemon')
daemon.addCommand(startCommand())
daemon.addCommand(statusCommand())
daemon.addCommand(stopCommand())
daemon.addCommand(restartCommand())
daemon
.command('status')
.description('Show daemon status')
.option('--host <host>', 'Daemon host:port (default: localhost:6767)')
.action(withOutput(runStatusCommand))
daemon
.command('stop')
.description('Stop the daemon')
.option('--host <host>', 'Daemon host:port (default: localhost:6767)')
.action(withOutput(runStopCommand))
daemon
.command('restart')
.description('Restart the daemon')
.option('--host <host>', 'Daemon host:port (default: localhost:6767)')
.action(withOutput(runRestartCommand))
return daemon
}