[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.

scaffold out commands

Nate Moore (Mar 29, 2025, 6:33 PM -0500) a80dddcc fb46ba29

+13 -4
+1 -2
src/commands/format.ts
··· 3 3 4 4 // standardized `format` command, runs `@biomejs/biome` and fixes formatting 5 5 export async function format(ctx: CommandContext) { 6 - console.clear(); 7 - console.log("Running format command..."); 6 + console.log("Formatting with Biome"); 8 7 const stdio = x("biome", ["check", "--write", "./src"]); 9 8 10 9 for await (const line of stdio) {
+9 -1
src/commands/lint.ts
··· 1 + import { x } from "tinyexec"; 1 2 import type { CommandContext } from "../context.ts"; 2 3 3 4 // standardized `lint` command, runs `@biomejs/biome` and generates a lint report 4 - export async function lint(ctx: CommandContext) {} 5 + export async function lint(ctx: CommandContext) { 6 + console.log("Linting with Biome"); 7 + const stdio = x("biome", ["lint", "./src"]); 8 + 9 + for await (const line of stdio) { 10 + console.log(line); 11 + } 12 + }
+3 -1
src/commands/test.ts
··· 1 1 import type { CommandContext } from "../context.ts"; 2 2 3 3 // standardized `test` command, shells out to `node test --strip-types` 4 - export async function test(ctx: CommandContext) {} 4 + export async function test(ctx: CommandContext) { 5 + console.log("TODO"); 6 + }