import { Template, defaultBuildLogger } from 'e2b'
import { template } from './template'

async function main() {
  await Template.build(template, '{{name}}', {
    {{#if cpuCount}}
    cpuCount: {{cpuCount}},
    {{/if}}
    {{#if memoryMB}}
    memoryMB: {{memoryMB}},
    {{/if}}
    onBuildLogs: defaultBuildLogger(),
  });
}

main().catch(console.error);
