Skip to content

armgit / Ix

Public Imported from GitHub
0

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

style: dim kind label on cycle nodes in depends

Joseph Mikhaile28047ddf1cb
diff --git a/ix-cli/src/cli/commands/depends.ts b/ix-cli/src/cli/commands/depends.ts
index e710396d..89e1bed9 100644
--- a/ix-cli/src/cli/commands/depends.ts
+++ b/ix-cli/src/cli/commands/depends.ts
@@ -123,7 +123,9 @@ function renderTree(children: DependencyNode[], prefix: string, isLast: boolean[
indent += isLast[j] ? " " : "│ ";
}
- const kindStr = chalk.cyan((child.kind ?? "").padEnd(10));
+ const kindStr = child.cycle
+ ? chalk.dim((child.kind ?? "").padEnd(10))
+ : chalk.cyan((child.kind ?? "").padEnd(10));
const nameStr = child.cycle
? chalk.dim(child.name) + chalk.yellow(" ↺")
: child.resolved ? chalk.bold(child.name) : chalk.dim(child.name);