[READ-ONLY] Mirror of https://github.com/bombshell-dev/tools. Internal CLI to standardize tooling across all Bombshell projects
0

Configure Feed

Select the types of activity you want to include in your feed.

[ci] format

authored by

Nate Moore and committed by
bombshell-bot
(Mar 31, 2025, 4:10 AM UTC) c9350f50 200fa6c8

+14 -9
+12 -7
src/commands/init.ts
··· 6 6 import type { CommandContext } from "../context.ts"; 7 7 8 8 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; 11 11 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 + ])) { 13 17 console.log(line); 14 18 } 15 19 16 20 const promises: Promise<void>[] = []; 17 21 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 + ); 22 27 } 23 28 await Promise.all(promises); 24 29 }
+1 -1
src/commands/lint.ts
··· 3 3 4 4 // standardized `lint` command, runs `@biomejs/biome` and generates a lint report 5 5 export async function lint(ctx: CommandContext) { 6 - console.log("Linting with Biome"); 6 + console.log("Linting with Biome"); 7 7 const stdio = x("biome", ["lint", "./src"]); 8 8 9 9 for await (const line of stdio) {
+1 -1
src/commands/test.ts
··· 2 2 3 3 // standardized `test` command, shells out to `node test --strip-types` 4 4 export async function test(ctx: CommandContext) { 5 - console.log("TODO"); 5 + console.log("TODO"); 6 6 }