From 1b2a4d1c32428ab3f654b989f23fd6f67a2fd8be Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Tue, 9 Jul 2024 14:40:31 -0600 Subject: [PATCH] fix: use ux.colorize --- src/help/sfHelp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/help/sfHelp.ts b/src/help/sfHelp.ts index 8b41b7f6..40b2c339 100644 --- a/src/help/sfHelp.ts +++ b/src/help/sfHelp.ts @@ -10,6 +10,7 @@ import { CommandHelp, Help } from '@oclif/core/help'; import Interfaces from '@oclif/core/interfaces'; import { toConfiguredId } from '@oclif/core/util/ids'; import { Ansis } from 'ansis'; +import { colorize } from '@oclif/core/ux'; import { SfCommandHelp } from './sfCommandHelp.js'; const ansis = new Ansis(); @@ -69,7 +70,7 @@ export default class SfHelp extends Help { let formattedArg = arg.slice(); const matches = ansis.strip(formattedArg).match(this.commandIdRegex) ?? []; for (const match of matches) { - formattedArg = formattedArg.replaceAll(match, ansis.dim(match)); + formattedArg = formattedArg.replaceAll(match, colorize('dim', match)); } return formattedArg;