ed312a3ed0
Update deps and boost test coverage from 70.8% to 90%
...
Update go-git v6, gopsutil v4.26.1, x/term v0.39.0, and transitive deps.
Refactor main() into testable run() function, add injectable processLister
and termWidthFunc for test isolation, and add tests covering detached HEAD,
dirty/clean worktree, empty repo, process listing errors, and terminal
width fallback.
2026-02-08 22:58:08 +01:00
0638707349
Use golang.org/x/term for terminal width detection
...
Replace direct unix.IoctlGetWinsize() call with term.GetSize() for
cleaner API. No binary size change as x/sys remains an indirect
dependency.
2025-12-18 18:36:54 +01:00
47ea4eb509
Add AGENTS.md and bump to Go 1.25
2025-12-18 11:31:35 +01:00
80ce148a3e
Update module path to Gitea
2025-12-18 06:36:56 +01:00
1cca87af90
Use gopsutil for cross-platform process detection
...
Replace pgrep with gopsutil/v4 for pure Go process detection.
Now fully cross-platform (Linux, FreeBSD, macOS, Windows) with
zero external exec calls. Add Taskfile and test fixture.
2025-12-18 06:36:56 +01:00
f1ca1ccaa0
Use go-git for native git operations
...
Replace exec-based git calls with go-git/v6 library for ~5.6x
speedup over shell version. Only pgrep remains as external call.
2025-12-18 06:36:55 +01:00
135bbf68f1
Add Go statusline implementation
...
Replace shell-based statusline with native Go for ~4x speedup.
Parses JSON natively, detects git status, checks gitea process,
and formats colored output with proper terminal width handling.
2025-12-18 06:36:55 +01:00
1416373348
batman
2025-12-18 06:36:55 +01:00