MCPcopy Index your code
hub / github.com/anomalyco/opencode / cliTry

Function cliTry

packages/opencode/src/cli/cmd/providers.ts:33–37  ·  view source on GitHub ↗
(message: string, fn: () => PromiseLike<Value>)

Source from the content-addressed store, hash-verified

31})
32
33const cliTry = <Value>(message: string, fn: () => PromiseLike<Value>) =>
34 Effect.tryPromise({
35 try: fn,
36 catch: (error) => new CliError({ message: message + errorMessage(error) }),
37 })
38
39const handlePluginAuth = Effect.fn("Cli.providers.pluginAuth")(function* (
40 plugin: { auth: PluginAuth },

Callers 1

providers.tsFile · 0.85

Calls 1

errorMessageFunction · 0.90

Tested by

no test coverage detected