licensepush

command module
v0.0.0-...-4859aca Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 1 Imported by: 0

README

licensepush

Built with WeBuild

It's the tool for pushing license information or any text into your source code

Installation

Go get

In case we have installed Golang, we can use Go tool to install licensepush:

  go install github.com/ledongthuc/licensepush

Usage

Prerequisite

We need to setup configuration that contains license text. From the directory of project, create file toml with content:

license = """License content."""
Run

Run the command:

  licensepush ~/project/source_code/ --config=~/project/source_code/.licensepush.yml

It push license content in ~/project/source_code/.licensepush.yml to all code files in ~/project/source_code/

Currently, we support code files:

.go

/*
 * License content.
*/

.js

/*
 * License content.
*/

.css

/*
 * License content.
*/

.html

<!--
 License content.
-->

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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