INNER CODE UNIT · TypeScript

writeAndFormatGoFile

jianyuan/terraform-provider-sentry · internal/providergen/index.ts:1001

async function writeAndFormatGoFile(destination: URL, code: string) {
  await Bun.write(destination, code);
  await Bun.$`go fmt ${destination.pathname}`;
  await Bun.$`go tool goimports -w ${destination.pathname}`;
}

async function main() {
  const { values } = parseArgs({
    args: Bun.argv,
    options: {
      filter: {
        type: "string",
      },
    },
    strict: true,
    allowPositionals: true,
  });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…