UNPKG

@code-pushup/cli

Version:

A CLI to run all kinds of code quality measurements to align your team with company goals

39 lines (38 loc) 993 B
import { type Argv, type CommandModule, type MiddlewareFunction, type Options } from 'yargs'; export declare const yargsDecorator: { 'Commands:': string; 'Options:': string; 'Examples:': string; boolean: string; count: string; string: string; array: string; required: string; 'default:': string; 'choices:': string; 'aliases:': string; }; /** * returns configurable yargs CLI for code-pushup * * @example * // bootstrap CLI; format arguments * yargsCli(hideBin(process.argv)).argv; */ export declare function yargsCli<T = unknown>(argv: string[], cfg: { usageMessage?: string; scriptName?: string; commands?: CommandModule[]; options?: { [key: string]: Options; }; groups?: { [key: string]: string[]; }; examples?: [string, string][]; middlewares?: { middlewareFunction: MiddlewareFunction; applyBeforeValidation?: boolean; }[]; noExitProcess?: boolean; }): Argv<T>;