Skip to content

armgit / Ix

Public Imported from GitHub
0

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

style: update depends cycle indicator to use ↺ and dim text

Joseph Mikhail1a0ce8e49142
diff --git a/ix-cli/src/cli/commands/depends.ts b/ix-cli/src/cli/commands/depends.ts
index 0e298cd0..e710396d 100644
--- a/ix-cli/src/cli/commands/depends.ts
+++ b/ix-cli/src/cli/commands/depends.ts
@@ -124,10 +124,11 @@ function renderTree(children: DependencyNode[], prefix: string, isLast: boolean[
}
const kindStr = chalk.cyan((child.kind ?? "").padEnd(10));
- const nameStr = child.resolved ? chalk.bold(child.name) : chalk.dim(child.name);
- const cycleMark = child.cycle ? chalk.yellow(" (cycle)") : "";
+ const nameStr = child.cycle
+ ? chalk.dim(child.name) + chalk.yellow(" ↺")
+ : child.resolved ? chalk.bold(child.name) : chalk.dim(child.name);
- lines.push(`${indent}${connector}${kindStr} ${nameStr}${cycleMark}`);
+ lines.push(`${indent}${connector}${kindStr} ${nameStr}`);
if (child.children.length > 0) {
lines.push(...renderTree(child.children, prefix, [...isLast, last]));