···66import type { CommandContext } from "../context.ts";
7788export async function init(ctx: CommandContext) {
99- const [_name = '.'] = ctx.args;
1010- const name = _name === '.' ? dirname(cwd()) : _name;
99+ const [_name = "."] = ctx.args;
1010+ const name = _name === "." ? dirname(cwd()) : _name;
1111 const dest = new URL("./.temp/", pathToFileURL([cwd(), sep].join("")));
1212- for await (const line of x("pnpx", ["giget@latest", "gh:bombshell-dev/template", name])) {
1212+ for await (const line of x("pnpx", [
1313+ "giget@latest",
1414+ "gh:bombshell-dev/template",
1515+ name,
1616+ ])) {
1317 console.log(line);
1418 }
15191620 const promises: Promise<void>[] = [];
1721 for (const file of ["package.json", "README.md"]) {
1818- promises.push(postprocess(new URL(file, dest), (contents) => {
1919- return contents
2020- .replaceAll("$name", name);
2121- }));
2222+ promises.push(
2323+ postprocess(new URL(file, dest), (contents) => {
2424+ return contents.replaceAll("$name", name);
2525+ }),
2626+ );
2227 }
2328 await Promise.all(promises);
2429}
+1-1
src/commands/lint.ts
···3344// standardized `lint` command, runs `@biomejs/biome` and generates a lint report
55export async function lint(ctx: CommandContext) {
66- console.log("Linting with Biome");
66+ console.log("Linting with Biome");
77 const stdio = x("biome", ["lint", "./src"]);
8899 for await (const line of stdio) {
+1-1
src/commands/test.ts
···2233// standardized `test` command, shells out to `node test --strip-types`
44export async function test(ctx: CommandContext) {
55- console.log("TODO");
55+ console.log("TODO");
66}