Build a CLI tool that interacts with the GitHub API. Applies concepts from Module 11.
Build a CLI that interacts with GitHub API:
gh user <username> — show user infogh repos <username> — list repositoriesgh star <owner/repo> — star a repogh issues <owner/repo> — list open issuescobra — for CLI structurenet/http — for API requestslipgloss — for pretty output// User info
GET https://api.github.com/users/{username}
// User repos
GET https://api.github.com/users/{username}/repos
// Star a repo (requires auth)
PUT https://api.github.com/user/starred/{owner}/{repo}
// List issues
GET https://api.github.com/repos/{owner}/{repo}/issues
$ gh user golang
┌─────────────────────────────────────┐
│ golang │
│ The Go Programming Language │
│ ──────────────────────────────── │
│ 📍 Location: n/a │
│ 👥 Followers: 23,456 │
│ 📦 Public repos: 42 │
└─────────────────────────────────────┘
Skills Used: HTTP clients, JSON decoding, Cobra CLI, environment variables for API tokens, lipgloss styling.