woaru
Version:
Universal Project Setup Autopilot - Analyze and automatically configure development tools for ANY programming language
69 lines • 2.44 kB
TypeScript
/**
* Secure Tool Execution Manager
* Provides safe interfaces for running development tools with proper argument handling
*/
import { ExecResult } from './secureExecution';
export interface ToolExecutionOptions {
timeout?: number;
cwd?: string;
env?: NodeJS.ProcessEnv;
}
export declare class ToolExecutor {
/**
* Run ESLint on a file
*/
static runESLint(filePath: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run Prettier on a file
*/
static runPrettier(filePath: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run Ruff (Python linter) on a file
*/
static runRuff(filePath: string, fix?: boolean, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run Go fmt on a file
*/
static runGoFmt(filePath: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run Go vet on a file
*/
static runGoVet(filePath: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run Rustfmt on a file
*/
static runRustFmt(filePath: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run .NET format on a file
*/
static runDotNetFormat(filePath: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run Java Checkstyle on a file
*/
static runCheckstyle(filePath: string, configPath?: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run PHP CodeSniffer on a file
*/
static runPhpCs(filePath: string, standard?: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run RuboCop on a file
*/
static runRuboCop(filePath: string, format?: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run TypeScript compiler check
*/
static runTsc(options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run Python Black formatter
*/
static runBlack(filePath: string, check?: boolean, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Run MyPy type checker
*/
static runMyPy(filePath: string, options?: ToolExecutionOptions): Promise<ExecResult>;
/**
* Generic tool runner with validation
*/
static runTool(command: string, args: string[], options?: ToolExecutionOptions): Promise<ExecResult>;
}
//# sourceMappingURL=toolExecutor.d.ts.map