Skip to content

feat: add repo-topology CLI tool#11

Open
bupd wants to merge 3 commits intomainfrom
feat/repo-topology
Open

feat: add repo-topology CLI tool#11
bupd wants to merge 3 commits intomainfrom
feat/repo-topology

Conversation

@bupd
Copy link
Copy Markdown
Owner

@bupd bupd commented May 3, 2026

Summary

  • Adds a Go CLI tool (scripts/repo-topology/) that analyzes git repositories and outputs ASCII topology visualizations
  • Displays directory tree with file counts, branch/remote summary, file-type distribution bar chart, and size stats
  • Supports --depth flag to control tree depth and --format flag for colored vs plain output

Test plan

  • Build succeeds (go build)
  • Tested against dotfiles repo with colored and plain output
  • Tested --depth flag with different values
  • Correctly rejects non-git directories

🤖 Generated with Claude Code

bupd and others added 3 commits March 10, 2026 23:03
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Go CLI tool that analyzes git repositories and outputs an ASCII
visualization including directory tree with file counts, branch/remote
summary, file-type distribution bar chart, and size stats. Supports
--depth and --format flags.

Nightshift-Task: repo-topology
Nightshift-Ref: https://github.com/marcus/nightshift
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add comprehensive test coverage for core functions: isGitRepo,
analyzeRepo, walkDir depth limiting, formatSize, colorizer,
and render smoke test. Tests use temporary git repos.

Nightshift-Task: repo-topology
Nightshift-Ref: https://github.com/marcus/nightshift
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant