https://github.com/4rnv/holo
Check your project's language percentage composition from the command line.
https://github.com/4rnv/holo
cli golang
Last synced: about 2 months ago
JSON representation
Check your project's language percentage composition from the command line.
- Host: GitHub
- URL: https://github.com/4rnv/holo
- Owner: 4rnv
- License: mit
- Created: 2025-03-30T11:27:02.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-30T11:56:35.000Z (about 2 months ago)
- Last Synced: 2025-03-30T12:30:48.601Z (about 2 months ago)
- Topics: cli, golang
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A lightweight Go tool that analyzes your codebase's language composition from CLI. Designed to mimic GitHub's language percentage statistics, providing info about your project’s code composition locally.
## Usage
- Requires Go (1.16 or above)
- Clone this repo with `git clone https://github.com/4rnv/Holo.git`
- `cd Holo`
- `go run main.go --folder "path/to/directory"`
- or `go build main.go"` followed by `./main --folder "path/to/directory"`
Run the tool by specifying the directory (folder) you want to analyze using the --folder flag. For example,`./main --folder "C:/Users/XYZ/my-app"`
## Configuration
### File Extension Mapping
The file-to-language mappings are defined in the fileExtensions map within the source code. You can customize this mapping to support additional file types or adjust existing associations.
### Ignored Directories
Common package or environment directories (e.g., node_modules, .git, venv, etc.) are ignored. The list of directories to ignore is also defined in the source code via the ignoredDirectories map. Add or remove directories as needed for your projects.
### Contributing
Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request with your changes.