(
result: Extract<ToolDomainResult, { kind: 'bundle-id' }>,
hints?: RenderHints,
)
| 735 | } |
| 736 | |
| 737 | function 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 | |
| 760 | function createInstallResultItems( |
| 761 | result: Extract<ToolDomainResult, { kind: 'install-result' }>, |
no test coverage detected