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

Function resolveClientBackendPlatform

src/cli/commands/screenshot.ts:113–124  ·  view source on GitHub ↗
(flags: CliFlags)

Source from the content-addressed store, hash-verified

111}
112
113function resolveClientBackendPlatform(flags: CliFlags): AgentDeviceBackend['platform'] {
114 switch (flags.platform) {
115 case 'android':
116 case 'linux':
117 case 'macos':
118 return flags.platform;
119 case 'ios':
120 case 'apple':
121 default:
122 return 'ios';
123 }
124}
125
126function parseCliThreshold(threshold: string | undefined): number | undefined {
127 if (threshold == null || threshold === '') return undefined;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected