mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 19:05:38 +00:00
chore: generate
This commit is contained in:
@@ -22,9 +22,7 @@ const TreeCommand = effectCmd({
|
|||||||
handler: Effect.fn("Cli.debug.rg.tree")(function* (args) {
|
handler: Effect.fn("Cli.debug.rg.tree")(function* (args) {
|
||||||
const ctx = yield* InstanceRef
|
const ctx = yield* InstanceRef
|
||||||
if (!ctx) return
|
if (!ctx) return
|
||||||
const tree = yield* Effect.orDie(
|
const tree = yield* Effect.orDie(Ripgrep.Service.use((svc) => svc.tree({ cwd: ctx.directory, limit: args.limit })))
|
||||||
Ripgrep.Service.use((svc) => svc.tree({ cwd: ctx.directory, limit: args.limit })),
|
|
||||||
)
|
|
||||||
process.stdout.write(tree + EOL)
|
process.stdout.write(tree + EOL)
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user