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

Function resolveRemoteConnectFlags

src/cli/commands/connection.ts:275–291  ·  view source on GitHub ↗
(flags: CliFlags)

Source from the content-addressed store, hash-verified

273}
274
275function resolveRemoteConnectFlags(flags: CliFlags): {
276 flags: CliFlags;
277 remoteConfigPath: string;
278} {
279 if (!flags.remoteConfig) {
280 throw new AppError('INVALID_ARGS', 'connect requires --remote-config <path>.');
281 }
282 const remoteConfig = resolveRemoteConfigProfile({
283 configPath: flags.remoteConfig,
284 cwd: process.cwd(),
285 env: process.env,
286 });
287 return {
288 flags,
289 remoteConfigPath: remoteConfig.resolvedPath,
290 };
291}
292
293function readRemoteConfigConnectionMetadata(
294 remoteConfigPath: string,

Callers 1

resolveConnectProfileFunction · 0.85

Calls 1

Tested by

no test coverage detected