···3344// standardized `format` command, runs `@biomejs/biome` and fixes formatting
55export async function format(ctx: CommandContext) {
66- console.clear();
77- console.log("Running format command...");
66+ console.log("Formatting with Biome");
87 const stdio = x("biome", ["check", "--write", "./src"]);
98109 for await (const line of stdio) {
+9-1
src/commands/lint.ts
···11+import { x } from "tinyexec";
12import type { CommandContext } from "../context.ts";
2334// standardized `lint` command, runs `@biomejs/biome` and generates a lint report
44-export async function lint(ctx: CommandContext) {}
55+export async function lint(ctx: CommandContext) {
66+ console.log("Linting with Biome");
77+ const stdio = x("biome", ["lint", "./src"]);
88+99+ for await (const line of stdio) {
1010+ console.log(line);
1111+ }
1212+}
+3-1
src/commands/test.ts
···11import type { CommandContext } from "../context.ts";
2233// standardized `test` command, shells out to `node test --strip-types`
44-export async function test(ctx: CommandContext) {}
44+export async function test(ctx: CommandContext) {
55+ console.log("TODO");
66+}