MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeChoice

Function makeChoice

packages/cli/src/internal/commandDescriptor.ts:938–941  ·  view source on GitHub ↗
(title: string, index: number)

Source from the content-addressed store, hash-verified

936 const description = InternalHelpDoc.p("Select which command you would like to execute")
937 const message = InternalHelpDoc.toAnsiText(description).trimEnd()
938 const makeChoice = (title: string, index: number) => ({
939 title,
940 value: [title, index] as const
941 })
942 const choices = pipe(
943 getSubcommandsInternal(self),
944 Arr.map(([name], index) => makeChoice(name, index))

Callers 1

loopFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected