@ton-ai-core/vibecode-linter
Version:
Advanced TypeScript linter with Git integration, dependency analysis, and comprehensive error reporting
22 lines • 840 B
TypeScript
import { Effect } from "effect";
/**
* Execute command with Effect pattern and stdout extraction.
*
* CHANGE: Common execAsync + Effect.tryPromise + stdout extraction pattern
* WHY: Eliminate code duplication across git, biome, eslint modules
* QUOTE(ТЗ): "Effect-TS для всех эффектов"
* REF: DUPLICATE #3, #4, #5 elimination
*
* @param command - Shell command to execute
* @param options - Optional execution options
* @returns Effect with stdout or Error
*
* @pure false (executes external command)
* @effect Effect<string, Error, never>
* @invariant command.length > 0 → (stdout ∨ Error)
* @complexity O(n) where n = command execution time
*/
export declare function execCommand(command: string, options?: {
maxBuffer?: number;
}): Effect.Effect<string, Error>;
//# sourceMappingURL=exec.d.ts.map