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

Function makeKeyValueMap

packages/cli/src/internal/options.ts:990–997  ·  view source on GitHub ↗
(
  argumentOption: Single
)

Source from the content-addressed store, hash-verified

988const makeFullName = (str: string): [boolean, string] => str.length === 1 ? [true, `-${str}`] : [false, `--${str}`]
989
990const makeKeyValueMap = (
991 argumentOption: Single
992): Options.Options<HashMap.HashMap<string, string>> => {
993 const op = Object.create(proto)
994 op._tag = "KeyValueMap"
995 op.argumentOption = argumentOption
996 return op
997}
998
999const makeMap = <A, B>(
1000 options: Options.Options<A>,

Callers 2

keyValueMapFunction · 0.85
modifySingleFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected