Skip to content

Commit

Permalink
feat(args): update cliApp() to use StreamLogger (target: process.stderr)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 18, 2023
1 parent d4c8fe2 commit b249295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/args/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IObjectOf } from "@thi.ng/api";
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
import { ConsoleLogger } from "@thi.ng/logger/console";
import { StreamLogger } from "@thi.ng/logger/stream";
import { padRight } from "@thi.ng/strings/pad-right";
import { PRESET_ANSI16, PRESET_NONE } from "@thi.ng/text-format/presets";
import type {
Expand Down Expand Up @@ -57,7 +57,7 @@ export const cliApp = async <
}
const ctx: CTX = await config.ctx(
{
logger: new ConsoleLogger(config.name, "INFO"),
logger: new StreamLogger(process.stderr, config.name, "INFO"),
format: isColor ? PRESET_ANSI16 : PRESET_NONE,
opts: parsed.result,
inputs: parsed.rest,
Expand Down

0 comments on commit b249295

Please sign in to comment.