maacpiash / addlh

A CLI tool that adds a license header on top of each source file of a directory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

addlh

A CLI tool that adds a license header on top of each source file of a directory.

Nuget Nuget GitHub All Releases AppVeyor Codecov Libraries.io dependency status for GitHub repo

How to install

If you have .NET Core (version 3 or above) installed, you can install this package as a tool:

dotnet tool install --global AddLicenseHeader

If you do not have .NET Core installed, you can download a binary file from the releases section.

How to use

addlh -h|-l /path/to/license/header -d|-s /path/to/source/directory

Example

addlh -h ../MIT.txt -s ./src/app

or,

addlh -d ./tests -l ./GPL-2.txt

Limitations

This tool currently works for the following languages:

  • C# (.cs)
  • JavaScript, TypeScript (.js, .jsx, .ts, .tsx)
  • Python (.py)
  • C, C++ (.c, .cc, .cpp. .h)

The license header file has to be present on the disk.

Twitter Follow

About

A CLI tool that adds a license header on top of each source file of a directory.

License:GNU General Public License v3.0


Languages

Language:C# 100.0%