MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / parseTarget

Function parseTarget

e2e/scripts/ci-shard.ts:71–72  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

69 left < right ? -1 : left > right ? 1 : 0;
70
71const parseTarget = (input: string): CiTarget | undefined =>
72 CI_TARGETS.find((target) => target === input);
73
74const parseIndex = (input: string): number | undefined => {
75 if (!/^\d+$/.test(input)) return undefined;

Callers 1

parseCiShardRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected