feat: add basic commands
This commit is contained in:
2
src/commands/brain.ts
Normal file
2
src/commands/brain.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// Manage brains
|
||||
export async function brain() {}
|
||||
@@ -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
3
src/commands/run.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// Run brain
|
||||
|
||||
export async function run() {}
|
||||
Reference in New Issue
Block a user