How thewizardshell/froggit works
Project type and purpose
• Froggit is a standalone terminal-based Git client written in Go.
• It provides a text-based user interface (TUI) for common Git operations, optional GitHub CLI integration, and customizable behavior via a YAML config file.
• Key use cases: staging, committing, branching, merging, stashing, rebasing, remote management, and GitHub repository creation/cloning.
File structure
• Top-level files:
• main.go – application entry point
• go.mod/go.sum – dependency management
• scripts/ – installer scripts for different platforms
• internal/ – core application packages:
• config/ – load and validate froggit.yml (configuration subsystem)
• gh/ – adapter for GitHub CLI (gh) operations
• git/ – wrapper around Git CLI commands, provides programmatic Git operations
• tui/ – text-based UI layer, subdivided into:
· app.go – application lifecycle & event loop (controller)
· model/ – in-memory representation of UI state (model)
· views/ – individual screen components (view)
· update/ – logic for asynchronous operations and update handlers
• utils/ – general helper functions
• docs/ – architecture, development guides, shortcuts
• .github/ – CI workflows, issue templates
README for additional insights
• Confirms Go 1.20+ requirement, dependency on Git and optional GitHub CLI.
• Points to docs/architecture.md for high-level overview.
• Describes major features, configuration options, and key shortcuts.