You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`gstats` is a CLI tool that provides comprehensive statistics and information about GitHub repositories and users.
4
+
5
+
## Installation
6
+
7
+
`gstats` can be installed either by cloning the repository and building from source or by downloading a precompiled executable from the release page. Below are the instructions for both methods:
8
+
9
+
### Installing from Source
10
+
11
+
1.**Clone the Repository**:
12
+
Clone `gstats` from GitHub to your local machine using the following command:
13
+
14
+
```bash
15
+
git clone https://github.com/cqb13/github-stats
16
+
cd gstats
17
+
```
18
+
19
+
2.**Build and Install with Cargo** (requires Rust's cargo tool):
20
+
If you have Rust and Cargo installed, you can directly build and install the application using:
21
+
22
+
```bash
23
+
cargo build --release
24
+
./target/release/gstats install
25
+
```
26
+
27
+
### Installing from Precompiled Executables
28
+
29
+
1.**Download the Latest Release**:
30
+
Go to the [Releases page](rhttps://github.com/cqb13/github-stats/releases) of the `gstats` repository and download the appropriate executable for your operating system.
31
+
32
+
2.**Run Install Command**:
33
+
After downloading, you need to run the installation command. Assuming you have downloaded `gstats.exe`, you can install it by navigating to the download location and running:
34
+
35
+
```bash
36
+
./gstats install
37
+
```
38
+
39
+
This command will set up `gstats` on your system, making it ready for use.
40
+
41
+
### Post-Installation
42
+
43
+
After installing `gstats`, you can run `gstats help` to see all available commands and how to use them. Make sure that the installation path of `gstats` is added to your system's PATH, so it can be run from any terminal session.
44
+
45
+
## Features
46
+
47
+
-**Version**: Display the current version of `gstats`.
48
+
-**Install**: Installs the necessary files and directories for the tool.
49
+
-**All Stats**: Fetches all available statistics for a specified repository in JSON format.
50
+
-**Releases**: Provides information about the releases of a specified repository.
51
+
-**User Info**: Retrieves detailed information about a GitHub user.
52
+
53
+
## Usage
54
+
55
+
Below are the commands available in `gstats`:
56
+
57
+
### General
58
+
59
+
-`gstats help`: Displays help information about the commands.
60
+
61
+
### Version
62
+
63
+
-`gstats version`: Shows the current version of `gstats`.
64
+
65
+
### Repository Statistics
66
+
67
+
-`gstats all -u <USER> -r <REPOSITORY> [-o <OUTPUT>] [-d]`
68
+
-`-u, --user USER`: The owner of the repository.
69
+
-`-r, --repository REPOSITORY`: The name of the repository.
70
+
-`-o, --output OUTPUT`: Optional. File path to save the JSON output.
71
+
-`-d, --display`: Optional. Converts JSON to a more readable format (some data may be omitted).
0 commit comments