MCPcopy
hub / github.com/upstash/context7 / getSelectedIdes

Function getSelectedIdes

packages/cli/src/utils/ide.ts:29–40  ·  view source on GitHub ↗
(options: IDEOptions)

Source from the content-addressed store, hash-verified

27} from "../types.js";
28
29export function getSelectedIdes(options: IDEOptions): IDE[] {
30 if (options.allAgents) {
31 return ["universal", ...VENDOR_SPECIFIC_AGENTS];
32 }
33
34 const ides: IDE[] = [];
35 if (options.claude) ides.push("claude");
36 if (options.cursor) ides.push("cursor");
37 if (options.universal) ides.push("universal");
38 if (options.antigravity) ides.push("antigravity");
39 return ides;
40}
41
42export function hasExplicitIdeOption(options: IDEOptions): boolean {
43 return !!(

Callers 3

promptForInstallTargetsFunction · 0.85
promptForSingleTargetFunction · 0.85
listCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected