MCPcopy Index your code
hub / github.com/callstack/agent-device / isFlagSupportedForCommand

Function isFlagSupportedForCommand

src/utils/cli-option-schema.ts:51–53  ·  view source on GitHub ↗
(key: FlagKey, command: string | null)

Source from the content-addressed store, hash-verified

49}
50
51export function isFlagSupportedForCommand(key: FlagKey, command: string | null): boolean {
52 return getOptionSpec(key)?.supportsCommand(command) ?? false;
53}
54
55export function parseOptionValueFromSource(
56 spec: OptionSpec,

Callers 4

resolveFlagDefinitionFunction · 0.90
finalizeParsedArgsFunction · 0.90

Calls 1

getOptionSpecFunction · 0.85

Tested by

no test coverage detected