Download packages/cli/src/commands/handlers/service/stop.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/cli/src/commands/handlers/service/stop.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/cli/src/commands/handlers/service/stop.ts
-
curl -L -o stop.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/cli/src/commands/handlers/service/stop.ts
358 Bytes
| import * as Effect from "effect/Effect" | |
| import { Commands } from "../../commands" | |
| import { Runtime } from "../../../framework/runtime" | |
| import { Daemon } from "../../../services/daemon" | |
| export default Runtime.handler( | |
| Commands.commands.service.commands.stop, | |
| Effect.fn("cli.service.stop")(function* () { | |
| yield* (yield* Daemon.Service).stop() | |
| }), | |
| ) | |