UNPKG

@triviality/core

Version:
15 lines (11 loc) 381 B
import { ConsoleInput } from '../ConsoleInput'; import { ConsoleOutput } from '../ConsoleOutput'; import { ConsoleCommand } from '../ConsoleCommand'; export class ByeConsoleCommand implements ConsoleCommand { public name(): string { return 'bye'; } public execute(input: ConsoleInput, output: ConsoleOutput) { output.info('Bye', input.getArg(1, ''), '!!!'); } }