mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-02 13:03:07 +00:00
13 lines
494 B
TypeScript
13 lines
494 B
TypeScript
import chalk from 'chalk'
|
|
import { Printer } from 'furious-commander/dist/printer'
|
|
import { Printer as SwarmPrinter } from './command/root-command/printer'
|
|
|
|
export const printer: Printer = {
|
|
print: SwarmPrinter.log,
|
|
printError: SwarmPrinter.error,
|
|
printHeading: (text: string) => SwarmPrinter.log(chalk.bold('█ ' + text)),
|
|
formatDim: (text: string) => chalk.dim(text),
|
|
formatImportant: (text: string) => chalk.bold(text),
|
|
getGenericErrorMessage: () => 'Failed to run command!',
|
|
}
|