pi-readseek 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/readseek-client.ts +1 -1
package/package.json
CHANGED
package/src/readseek-client.ts
CHANGED
|
@@ -339,7 +339,7 @@ function parseSearchOutput(value: unknown): ReadseekSearchOutput {
|
|
|
339
339
|
|
|
340
340
|
export async function readseekRead(filePath: string, startLine?: number, endLine?: number): Promise<ReadseekReadOutput> {
|
|
341
341
|
const args = ["read", filePath];
|
|
342
|
-
if (startLine !== undefined) args.push("--
|
|
342
|
+
if (startLine !== undefined) args.push("--offset", String(startLine));
|
|
343
343
|
if (endLine !== undefined) args.push("--end", String(endLine));
|
|
344
344
|
return parseReadOutput(await runReadseek(args));
|
|
345
345
|
}
|