15 lines
366 B
TypeScript
15 lines
366 B
TypeScript
export function joinDebug(id: string, hosts: { name: string }[]) {
|
|
let port = 7090
|
|
return `
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ExtensionList>
|
|
<Extension Id="${id}">
|
|
<HostList>
|
|
${hosts
|
|
.map((host) => `<Host Name="${host.name}" Port="${port++}"/>`)
|
|
.join("\n")}
|
|
</HostList>
|
|
</Extension>
|
|
</ExtensionList>
|
|
`
|
|
} |