@qodalis/cli-core
Version:
Core Angular CLI for @qodalis extensions.
24 lines (23 loc) • 1.49 kB
TypeScript
import { ICliCommandParameterDescriptor } from '../interfaces';
import { CliBackgroundColor } from '../models';
import { ObjectDescriber } from './object-describer';
export declare const getParameterValue: (p: ICliCommandParameterDescriptor, args: Record<string, any>) => any | undefined;
export declare const formatJson: (json: any) => string;
export declare const colorizeJson: (jsonString: any) => string;
export declare const toQueryString: (params: Record<string, any>) => string;
export declare const highlightTextWithBg: (text: string, pattern: RegExp, bgColor?: CliBackgroundColor) => string;
export declare const getRightOfWord: (command: string, word: string) => string | undefined;
export declare const colorFirstWord: (text: string, colorFunction: (word: string) => string) => string;
export * from './object-describer';
export * from './delay';
export declare const utils: {
getParameterValue: (p: ICliCommandParameterDescriptor, args: Record<string, any>) => any | undefined;
formatJson: (json: any) => string;
colorizeJson: (jsonString: any) => string;
toQueryString: (params: Record<string, any>) => string;
highlightTextWithBg: (text: string, pattern: RegExp, bgColor?: CliBackgroundColor) => string;
getRightOfWord: (command: string, word: string) => string | undefined;
colorFirstWord: (text: string, colorFunction: (word: string) => string) => string;
ObjectDescriber: typeof ObjectDescriber;
delay: (ms: number) => Promise<void>;
};