MCPcopy Create free account
hub / github.com/effect-app/libs / mapHandler

Function mapHandler

repos/effect/packages/effect/src/unstable/cli/Command.ts:1183–1189  ·  view source on GitHub ↗
(
  self: Command<Name, Input, ContextInput, E, R>,
  f: (handler: Effect.Effect<void, E | CliError.CliError, R | Environment>, input: Input) => Effect.Effect<void, E2, R2>
)

Source from the content-addressed store, hash-verified

1181 self: Command<Name, Input, ContextInput, E, R>,
1182 shortDescription: string
1183 ): Command<Name, Input, ContextInput, E, R>
1184} = dual(2, <const Name extends string, Input, E, R, ContextInput>(
1185 self: Command<Name, Input, ContextInput, E, R>,
1186 shortDescription: string
1187) => makeCommand({ ...toImpl(self), shortDescription }))
1188
1189/**
1190 * Sets an alias for a command.
1191 *
1192 * **Details**

Callers 1

Command.tsFile · 0.70

Calls 4

toImplFunction · 0.90
makeCommandFunction · 0.90
handleMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…