MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / createBundleIdItems

Function createBundleIdItems

src/utils/renderers/domain-result-text.ts:737–758  ·  view source on GitHub ↗
(
  result: Extract<ToolDomainResult, { kind: 'bundle-id' }>,
  hints?: RenderHints,
)

Source from the content-addressed store, hash-verified

735}
736
737function createBundleIdItems(
738 result: Extract<ToolDomainResult, { kind: 'bundle-id' }>,
739 hints?: RenderHints,
740): TextRenderableItem[] {
741 const items: TextRenderableItem[] = [
742 createHeader(hints?.headerTitle ?? 'Get Bundle ID', [
743 { label: 'App', value: displayPath(result.artifacts.appPath) },
744 ]),
745 ];
746 if (result.didError) {
747 items.push(...createFailureStatusWithDiagnostics(result, 'Failed to get bundle ID.'));
748 return items;
749 }
750
751 items.push(
752 createSection(
753 '✅ Bundle ID',
754 result.artifacts.bundleId ? [`└ ${result.artifacts.bundleId}`] : [],
755 ),
756 );
757 return items;
758}
759
760function createInstallResultItems(
761 result: Extract<ToolDomainResult, { kind: 'install-result' }>,

Callers 1

createSpecialCaseItemsFunction · 0.85

Calls 5

displayPathFunction · 0.90
createHeaderFunction · 0.85
createSectionFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected