licenser

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 9 Imported by: 0

README

licenser

A simple command line tool to add a license to a project and assign copyright to Github contributors.

Installation

go get github.com/nandanrao/licenser

Usage

The command:

licenser > LICENSE

Results in an MIT license with the following, where the Github URL is created from the git remote information (defaults to "origin" remote):

Copyright (c) 2021 licenser contributors
(https://github.com/nandanrao/licenser/graph/contributors)

You can add additional copyright holders with positional arguments:

licenser "Nandan Rao"> LICENSE

Which results in an MIT license with the following:


Copyright (c) 2021 Nandan Rao and licenser contributors
(https://github.com/nandanrao/licenser/graph/contributors)

There is also a "year" flag:

licenser -y 2019-2020 > LICENSE

You can pick the git remote name:

licenser -r not-the-origin > LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL