MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / buildShellArchCase

Function buildShellArchCase

src/cm/lsp/installerUtils.ts:49–59  ·  view source on GitHub ↗
(
	assets: Record<string, string> | undefined | null,
	quote: (value: unknown) => string,
)

Source from the content-addressed store, hash-verified

47}
48
49export function buildShellArchCase(
50 assets: Record<string, string> | undefined | null,
51 quote: (value: unknown) => string,
52): string {
53 return getArchitectureMatchers(assets)
54 .map(
55 ({ aliases, asset }) =>
56 `\t${aliases.join("|")}) ASSET=${quote(asset)} ;;`,
57 )
58 .join("\n");
59}

Callers 2

buildInstallCommandFunction · 0.90
installServerFunction · 0.90

Calls 1

getArchitectureMatchersFunction · 0.85

Tested by

no test coverage detected