Files
oh-my-opencode/dist/tools/ast-grep/cli.d.ts
T

13 lines
435 B
TypeScript
Raw Normal View History

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>;