Skip to content

Commit c9350f5

Browse files
natemoo-regithub-actions[bot]
authored andcommitted
[ci] format
1 parent 200fa6c commit c9350f5

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

src/commands/init.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@ import { x } from "tinyexec";
66
import type { CommandContext } from "../context.ts";
77

88
export async function init(ctx: CommandContext) {
9-
const [_name = '.'] = ctx.args;
10-
const name = _name === '.' ? dirname(cwd()) : _name;
9+
const [_name = "."] = ctx.args;
10+
const name = _name === "." ? dirname(cwd()) : _name;
1111
const dest = new URL("./.temp/", pathToFileURL([cwd(), sep].join("")));
12-
for await (const line of x("pnpx", ["giget@latest", "gh:bombshell-dev/template", name])) {
12+
for await (const line of x("pnpx", [
13+
"giget@latest",
14+
"gh:bombshell-dev/template",
15+
name,
16+
])) {
1317
console.log(line);
1418
}
1519

1620
const promises: Promise<void>[] = [];
1721
for (const file of ["package.json", "README.md"]) {
18-
promises.push(postprocess(new URL(file, dest), (contents) => {
19-
return contents
20-
.replaceAll("$name", name);
21-
}));
22+
promises.push(
23+
postprocess(new URL(file, dest), (contents) => {
24+
return contents.replaceAll("$name", name);
25+
}),
26+
);
2227
}
2328
await Promise.all(promises);
2429
}

src/commands/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { CommandContext } from "../context.ts";
33

44
// standardized `lint` command, runs `@biomejs/biome` and generates a lint report
55
export async function lint(ctx: CommandContext) {
6-
console.log("Linting with Biome");
6+
console.log("Linting with Biome");
77
const stdio = x("biome", ["lint", "./src"]);
88

99
for await (const line of stdio) {

src/commands/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import type { CommandContext } from "../context.ts";
22

33
// standardized `test` command, shells out to `node test --strip-types`
44
export async function test(ctx: CommandContext) {
5-
console.log("TODO");
5+
console.log("TODO");
66
}

0 commit comments

Comments
 (0)