@jwpkg/gitversion
Version:
Gitversion is a complete customizable git-based release management system
18 lines (17 loc) • 604 B
TypeScript
import { LogReporter } from './log-reporter';
export interface IExecutorExecOptions {
normalizeOutput?: boolean;
cwd?: string;
silent?: boolean;
echo?: boolean;
}
export interface IExecutor {
exec(commandAndArgs: string[], options?: IExecutorExecOptions): Promise<string>;
}
export declare class Executor implements IExecutor {
private cwd;
private logger;
constructor(cwd: string, logger: LogReporter);
exec(commandAndArgs: string[], options?: IExecutorExecOptions | undefined): Promise<string>;
logError(message: string, options?: IExecutorExecOptions): void;
}