chore: generate
This commit is contained in:
parent
4de44bbbef
commit
36007aecf4
1 changed files with 3 additions and 1 deletions
|
|
@ -25,7 +25,9 @@ const TreeCommand = effectCmd({
|
||||||
if (!ctx) return
|
if (!ctx) return
|
||||||
const store = yield* InstanceStore.Service
|
const store = yield* InstanceStore.Service
|
||||||
return yield* Effect.gen(function* () {
|
return yield* Effect.gen(function* () {
|
||||||
const tree = yield* Effect.orDie(Ripgrep.Service.use((svc) => svc.tree({ cwd: ctx.directory, limit: args.limit })))
|
const tree = yield* Effect.orDie(
|
||||||
|
Ripgrep.Service.use((svc) => svc.tree({ cwd: ctx.directory, limit: args.limit })),
|
||||||
|
)
|
||||||
process.stdout.write(tree + EOL)
|
process.stdout.write(tree + EOL)
|
||||||
}).pipe(Effect.ensuring(store.dispose(ctx)))
|
}).pipe(Effect.ensuring(store.dispose(ctx)))
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue