Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fhasnur/github-activity
⌨️ GitHub Activity, simple command-line interface (CLI) tool to display a user's GitHub activity.
https://github.com/fhasnur/github-activity
cli cobra github-api go golang
Last synced: about 2 months ago
JSON representation
⌨️ GitHub Activity, simple command-line interface (CLI) tool to display a user's GitHub activity.
- Host: GitHub
- URL: https://github.com/fhasnur/github-activity
- Owner: fhasnur
- License: mit
- Created: 2024-08-24T01:09:36.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-07T14:00:54.000Z (4 months ago)
- Last Synced: 2024-12-23T06:45:50.998Z (about 2 months ago)
- Topics: cli, cobra, github-api, go, golang
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://roadmap.sh/projects/github-user-activity) challenge from [roadmap.sh](https://roadmap.sh/)
## Installation
To use the GitHub Activity CLI, you need to have Go installed on your machine.
1. **Clone the Repository:**
```bash
git clone https://github.com/fhasnur/github-activity.git
```2. **Navigate to the project directory:**
```bash
cd github-activity
```3. **Build the CLI:**
```bash
go build -o github-activity
```## Usage
Once built, you can run the CLI tool from your terminal. The basic usage is:
```bash
./github-activity```
Replace with the GitHub username you want to query. For example:
```bash
./github-activity fhasnur
```### Example Output
```bash
Github User: fhasnur
Name: Fandi Hasnur
Bio: my codes are funday space 🌞
Public Repos: 52 | Followers: 46Recent 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](LICENSE) file for details.