Licenser
Automatically include licenses on the top of every source file. This is used in all Laudio repositories to ensure that each file has a license header.
Usage
The License is passed via a file which can be set using the -l
flag.
$ licenser -l /path/to/LICENSE
By default, the LICENSE
file in the current working directory is searched for.
A default license is used if the -l
flag is not specified and the working directory does not
contain a LICENSE
file.
© Laudio, Inc. All Rights Reserved.
This file contains proprietary and confidential source
code. Unauthorized copying of this file, via any
medium is strictly prohibited.
® 2018 Laudio is a registered trademark of Laudio, Inc.
Migration to a New License
Use -m
flag to migrate to a new license.
$ licenser -l /path/to/LICENSE -m /path/to/new/license
This reads - Migrate the license specified by -l
to license specified by -m
.
Dry Run
Add the -d
flag for a dry run.
$ licenser -l /path/to/LICENSE -d
Installation
Pre-built binaries for Linux, MacOS and Windows are available under the bin/
directory.
Binaries can be regenerated for all platforms by running make
.
Provide a platform to make
for building for a specific platform. For example, to create a Linux binary:
$ make linux
Similarly, use make darwin
and make windows
for MacOS and Windows platforms.
Manual Installation
If you have Go installed, run the following command to get a binary in your $GOPATH/bin/
directory:
$ go install .