mirror of
https://github.com/arl/gitmux.git
synced 2026-09-10 07:26:18 -04:00
* ci: remove brew tag check from workflow * goreleaser: remove brew-specific configuration * .github: improve pull request template * .github: add copilot instructions
1.1 KiB
1.1 KiB
This is a Go based repository buliding a command line tool that converts the status of a git working tree for a specific directory into a tmux status string the end user can add to their tmux status line. It is designed to be used with the tmux terminal multiplexer.
Code Standards
Required Before Each Commit
- Run
go test ./...before committing any changes to ensure tests pass - Go code should be formatted with
gofmt
Repository Structure
./: repository root, main package, default configuration file, and main entry pointtmux/: tmux formattingjson/: used by gitmux -dbg to print the git working tree status as a json object, for debugging purposestestdata/: testscripts fixtures when actual gitmux output is checked against some specific conditions.
Key Guidelines
- Follow Go best practices and idiomatic patterns
- Maintain existing code structure and organization
- Write unit tests for new functionality. Use table-driven unit tests when possible.
- Document public options
- Keep table aligned in the README.md file, for a nice experience even when reading the file in a terminal