feat: add basic commands

This commit is contained in:
2026-05-31 23:24:57 +09:00
parent abcf8497a2
commit b5bf5b72ed
4 changed files with 24 additions and 42 deletions

2
src/commands/brain.ts Normal file
View File

@@ -0,0 +1,2 @@
// Manage brains
export async function brain() {}

View File

@@ -1,16 +0,0 @@
import { logger } from "@/utils/logger";
interface GreetOptions {
uppercase?: boolean;
count?: string;
}
export function greet(name: string, options: GreetOptions) {
const message = `Hello, ${name}!`;
const output = options.uppercase ? message.toUpperCase() : message;
const count = Math.max(1, parseInt(options.count ?? "1", 10));
for (let i = 0; i < count; i++) {
logger.success(output);
}
}

3
src/commands/run.ts Normal file
View File

@@ -0,0 +1,3 @@
// Run brain
export async function run() {}