How mislav/hub works
hub is a Git-wrapping CLI that adds GitHub workflows, including issues, pull requests, releases, and direct API access. Users invoke the executable; its command runner dispatches features that use Git repository operations and GitHub services, then present results in the terminal. The graph preserves these major product branches and a supporting process-execution layer. Several command families and the runner are unsampled, so their internal connections are omitted rather than inferred.
Main entry points: client.go GitHub client · main.go Executable entry · git.go Git operations · api.go API command
Components 17
Command workflows
- Command runner
commands/runner.go - API command
commands/api.go - Issue workflows
commands/issue.go - PR workflows
commands/pr.go - Create pull request
commands/pull_request.go - Release workflows
commands/release.go - Other GitHub commands
commands
Git integration
- Git operations
git/git.go
GitHub integration
- GitHub client
github/client.go - HTTP transport
github/http.go - Repository context
github/localrepo.go
Runtime support
- Executable entry
main.go - Process execution
cmd/cmd.go - Terminal output
ui/ui.go
Other components
- CLI user
- GitHub API
- Git executable
Connections 14
- CLI user → Executable entry: runs
- Executable entry → Command runner: executes
main.go - Executable entry → Terminal output: reports errors
main.go - API command → GitHub client: requests API
commands/api.go - API command → GitHub API: accesses API
- Issue workflows → GitHub client: manages issues
commands/issue.go - Issue workflows → Terminal output: prints results
commands/issue.go - PR workflows → GitHub client: fetches requests
commands/pr.go - PR workflows → Git operations: checks branches
commands/pr.go - Create pull request → GitHub client: creates request
commands/pull_request.go - Create pull request → Git operations: inspects branches
commands/pull_request.go - Release workflows → GitHub client: manages releases
commands/release.go - Git operations → Process execution: runs commands
git/git.go - Process execution → Git executable: executes
cmd/cmd.go