export const name = 'path';
export async function handler(args, ctx) {
    if (args.file_mode) {
        const { filePathData } = await ctx.getQueries();
        return filePathData(args.from, args.to, ctx.dbPath, {
            maxDepth: args.depth ?? 10,
            edgeKinds: args.edge_kinds,
            reverse: false,
            noTests: args.no_tests,
        });
    }
    const { pathData } = await ctx.getQueries();
    return pathData(args.from, args.to, ctx.dbPath, {
        maxDepth: args.depth ?? 10,
        edgeKinds: args.edge_kinds,
        fromFile: args.from_file,
        toFile: args.to_file,
        noTests: args.no_tests,
    });
}
//# sourceMappingURL=path.js.map