utils: {
    colorFirstWord: (
        text: string,
        colorFunction: (word: string) => string,
    ) => string;
    colorizeJson: (jsonString: any) => string;
    delay: (ms: number) => Promise<void>;
    formatJson: (json: any) => string;
    getParameterValue: (
        p: ICliCommandParameterDescriptor,
        args: Record<string, any>,
    ) => any;
    getRightOfWord: (command: string, word: string) => undefined | string;
    highlightTextWithBg: (
        text: string,
        pattern: RegExp,
        bgColor?: CliBackgroundColor,
    ) => string;
    ObjectDescriber: typeof ObjectDescriber;
    toQueryString: (params: Record<string, any>) => string;
} = ...

Type declaration

  • colorFirstWord: (text: string, colorFunction: (word: string) => string) => string
  • colorizeJson: (jsonString: any) => string
  • delay: (ms: number) => Promise<void>
  • formatJson: (json: any) => string
  • getParameterValue: (p: ICliCommandParameterDescriptor, args: Record<string, any>) => any
  • getRightOfWord: (command: string, word: string) => undefined | string
  • highlightTextWithBg: (text: string, pattern: RegExp, bgColor?: CliBackgroundColor) => string
  • ObjectDescriber: typeof ObjectDescriber
  • toQueryString: (params: Record<string, any>) => string