mirror of
https://github.com/khalidbelk/licenzio.git
synced 2026-06-21 03:12:41 +02:00
A CLI tool for adding license files to projects
- OCaml 65.1%
- Makefile 20.2%
- Dune 14.7%
|
|
||
|---|---|---|
| .github/workflows | ||
| licenses | ||
| src | ||
| test | ||
| .gitignore | ||
| dune-project | ||
| LICENSE | ||
| licenzio.opam | ||
| Makefile | ||
| README.md | ||
Licenzio
Licenzio is a very simple, time-saving CLI tool that makes it easier to add a LICENSE file to your project.
If you're like me, tired of having to search for a license online, copying it, creating the file and pasting it into your new project every time, this simplifies it by putting it just a command away.
Usage
Add a license to your project:
licenzio mit # Adds MIT license
licenzio apache # Adds Apache 2.0 license
licenzio lgpl -o ~/Desktop/my_old_project/ # Adds LGPL v3 license to the specified directory
See all available licenses and options:
licenzio -h
Installation
Pre-built binaries
To install Licenzio, download the latest release binaries:
Linux:
curl -L -o licenzio https://github.com/khalidbelk/licenzio/releases/latest/download/licenzio-linux
chmod +x licenzio
sudo mv licenzio /usr/local/bin/
or macOS (ARM/M series)
curl -L -o licenzio https://github.com/khalidbelk/licenzio/releases/latest/download/licenzio-macos
chmod +x licenzio
sudo mv licenzio /usr/local/bin/
Then verify the installation with:
licenzio --version
Build from source
Alternatively, if you want to build the project, follow these steps:
Requires: OCaml 5.2, opam, and make
- Clone this repository and open it.
git clone git@github.com:khalidbelk/licenzio.git
cd licenzio
- Compile with the Make tool (needs to be already installed in your system)
make install && make
This will produce the licenzio executable.
License
This project is licensed under the MIT License - see the LICENSE file for details.