chore: generate
This commit is contained in:
parent
68b3448b09
commit
9293cddb3a
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue