设计tracer

This commit is contained in:
2025-11-13 20:41:25 +08:00
parent 0ade49a589
commit 7033208b06
16 changed files with 41 additions and 43 deletions

10
tracers.ts/src/index.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Commander } from "./commander";
import { ArrayTracer } from "./tracer";
const arrayTracer = ArrayTracer.define<number>({ description: 'Array Tracer' });
arrayTracer.preset([1, 2, 3]);
const commander = Commander.getInstance();
const commands = commander.output();
console.log(commands);