MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeSingle

Function makeSingle

packages/cli/src/internal/args.ts:676–688  ·  view source on GitHub ↗
(
  pseudoName: Option.Option<string>,
  primitiveType: Primitive.Primitive<A>,
  description: HelpDoc.HelpDoc = InternalHelpDoc.empty
)

Source from the content-addressed store, hash-verified

674}
675
676const makeSingle = <A>(
677 pseudoName: Option.Option<string>,
678 primitiveType: Primitive.Primitive<A>,
679 description: HelpDoc.HelpDoc = InternalHelpDoc.empty
680): Args.Args<A> => {
681 const op = Object.create(proto)
682 op._tag = "Single"
683 op.name = `<${Option.getOrElse(pseudoName, () => InternalPrimitive.getTypeName(primitiveType))}>`
684 op.pseudoName = pseudoName
685 op.primitiveType = primitiveType
686 op.description = description
687 return op
688}
689
690const makeMap = <A, B>(
691 self: Args.Args<A>,

Callers 12

booleanFunction · 0.70
choiceFunction · 0.70
dateFunction · 0.70
directoryFunction · 0.70
fileFunction · 0.70
floatFunction · 0.70
integerFunction · 0.70
pathFunction · 0.70
redactedFunction · 0.70
secretFunction · 0.70
textFunction · 0.70
withDescriptionInternalFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected