Files
oh-my-opencode/dist/tools/ast-grep/cli.d.ts
T
2026-03-14 04:56:50 +00:00

13 lines
435 B
TypeScript

import type { CliLanguage, SgResult } from "./types";
export { ensureCliAvailable, getAstGrepPath, isCliAvailable, startBackgroundInit, } from "./cli-binary-path-resolution";
export interface RunOptions {
pattern: string;
lang: CliLanguage;
paths?: string[];
globs?: string[];
rewrite?: string;
context?: number;
updateAll?: boolean;
}
export declare function runSg(options: RunOptions): Promise<SgResult>;