Skip to content

Latest commit

 

History

History
115 lines (67 loc) · 2.18 KB

File metadata and controls

115 lines (67 loc) · 2.18 KB

GitHub User Activity CLI

A command-line interface (CLI) tool to find the most recent activity of a GitHub user.

Project page url: https://roadmap.sh/projects/github-user-activity

Preview

GitHub User Activity CLI

Table of Contents


Installation


To install the GitHub User Activity CLI, first clone this github repository:

git clone https://github.com/Rahul8320/Github-User-Activity-Cli.git

Then move to the Github-User-Activity-Cli directory and run the following command:

npm install

Then build this tool and install globally in your system using the following command:

npm run build
npm install -g .

This will install the CLI tool globally on your system.

Usage


To use the GitHub User Activity CLI, run the following command:

github-activity -u <username>

Replace <username> with the actual GitHub username you want to retrieve activity for.

Options


  • -u, --username <username>: Specify the GitHub username to retrieve activity for. (required)

  • -d, --details: Show detailed activity.

  • -f, --filter <filter>: Filter activity by event type.

  • -h, --help: Display this help message.

  • -V, --version: Display the version number.

Examples


  • Retrieve activity for the GitHub user rahul8320:
github-activity -u rahul8320

This will display the most recent activity for the user rahul8320 on GitHub.

  • Retrieve detailed activity for the GitHub user rahul8320:
github-activity -u rahul8320 -d

This will display the detailed activity for the user rahul8320 on GitHub.

  • Filter activity by event type for the GitHub user rahul8320:
github-activity -u rahul8320 -f PushEvent

This will display only push events for the user rahul8320 on GitHub.

Contributing


Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.

License


This project is licensed under the ISC License.

Author


Rahul Dey