https://github.com/c4milo/licentia
Manage the open source licenses of your projects
https://github.com/c4milo/licentia
cli go license-management
Last synced: 7 months ago
JSON representation
Manage the open source licenses of your projects
- Host: GitHub
- URL: https://github.com/c4milo/licentia
- Owner: c4milo
- License: mpl-2.0
- Created: 2014-09-08T18:01:37.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T18:59:01.000Z (almost 6 years ago)
- Last Synced: 2025-03-18T11:39:34.191Z (7 months ago)
- Topics: cli, go, license-management
- Language: Go
- Homepage:
- Size: 1.74 MB
- Stars: 41
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Licentia
[](https://godoc.org/github.com/c4milo/licentia)
[](https://travis-ci.org/c4milo/licentia)Helps you manage the open source licenses of your projects quickly and effortlessly.
### Features
Licentia allows you to:* Easily manage your opensource licenses across several files
* Update the year of your copyright notice across several files
* Change the license of a subset of files by using glob patterns### Installation
`go get github.com/c4milo/licentia`### Usage
```
Licentia.Usage:
licentia set
licentia unset
licentia detect
licentia dump
licentia list
licentia -h | --help
licentia --versionSupported license types:
* apache2 * gpl3 * gpl2
* mpl2 * cddl * unlicense
* mit * epl
* newbsd * freebsd
* lgpl3 * lgpl2Actions:
set Sets a license header to the specified files
unset Removes license header from the specified files
detect Detects license type for the specified files
dump Dumps to stdout a given license using the specified owner and the current year
list List supported licensesArguments:
type License type to set. Ex: apache2, mpl2, mit, newbsd, lgpl3
owner Copyright owner. Ex: "YourCompany Inc"
files Source files to set the license header. It supports globbing patterns as well as specifying individual files. Ex: *.go, myfile.go, **/*.go
eol-comment-style End-of-line comment style. Ex: #, ;, //, --, ', etc.Options:
-h --help Show this screen.
--version Show version.
```### Licenses supported
* Apache License 2.0
* Mozilla Public License 2.0
* MIT License
* GNU General Public License (GPL)
* GNU Library or "Lesser" General Public License (LGPL)
* BSD 2-Clause "Simplified" or "FreeBSD" license
* BSD 3-Clause "New" or "Revised" license
* Common Development and Distribution License
* Eclipse Public Licenses
* Unlicense