GitHub Activity CLI
A command-line interface (CLI) tool to display a user's GitHub activity, including pushes, issues, stars, forks, and more. The sample solution for the github-user-activity challenge from roadmap.sh
Installation
To use the GitHub Activity CLI, you need to have Go installed on your machine.
- Clone the Repository:
git clone https://github.com/fhasnur/github-activity.git
- Navigate to the project directory:
cd github-activity
- Build the CLI:
go build -o github-activity
Usage
Once built, you can run the CLI tool from your terminal. The basic usage is:
./github-activity <username>
Replace with the GitHub username you want to query. For example:
./github-activity fhasnur
Example Output
Github User: fhasnur
Name: Fandi Hasnur
Bio: my codes are funday space 🌞
Public Repos: 52 | Followers: 46
Recent Activities:
-------------------------------------------------
- Pushed 1 commit(s) to fhasnur/github-activity
(at 2024-09-03T16:52:59Z)
-------------------------------------------------
- Created branch in fhasnur/github-activity
(at 2024-08-24T01:15:41Z)
-------------------------------------------------
- Created repository in fhasnur/github-activity
(at 2024-08-24T01:09:37Z)
Contributing
Feel free to submit pull requests or open issues for new features, improvements, or bug fixes.
License
This project is licensed under the MIT License. See the LICENSE file for details.