Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

feat: show node kind in trace from-to route output

Joseph Mikhailad5ca098c2d8
diff --git a/ix-cli/src/cli/commands/trace.ts b/ix-cli/src/cli/commands/trace.ts
index 2beadb34..18a18001 100644
--- a/ix-cli/src/cli/commands/trace.ts
+++ b/ix-cli/src/cli/commands/trace.ts
@@ -324,10 +324,11 @@ export function registerTraceCommand(program: Command): void {
console.log(chalk.bold("\nRoute"));
for (let i = 0; i < pathNodes.length; i++) {
const n = pathNodes[i];
+ const kindStr = chalk.cyan((n.kind ?? "").padEnd(10));
if (i === 0) {
- console.log(` ${n.name}`);
+ console.log(` ${kindStr} ${n.name}`);
} else {
- console.log(` ${chalk.dim("→")} ${n.name}`);
+ console.log(` ${chalk.dim("→")} ${kindStr} ${n.name}`);
}
}