← 全部工具

shreyanth-sureshkrishnaa/licensor

热度 75 更新于 开发与构建

An instant CLI to inject licenses into your project.

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

<div align="center"

licensor

A CLI that fetches official license text straight from GitHub's Licenses API and writes it into your project as a LICENSE file.

</div

---

Install

From source (until published to crates.io):

git clone https://github.com/shreyanthssk/licensor
cd licensor
cargo install --path .

Or directly from the git repo without cloning first:

cargo install --git https://github.com/shreyanthssk/licensor

---

Usage

List every license GitHub recognizes:

licensor list

Add a license to your project:

licensor add mit

By default this writes to ./LICENSE, using your git config user.name and the current year for any [fullname]/[year] fields the license template requires. Override either:

licensor add mit --name "Jane Doe" --year 2025