golic

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

golic

license management tool, injecting licenses into source code

golic inject -c="2021 MyCompany ltd." --dry

Screenshot 2021-03-08 at 11 42 52

Running from commandline

create .licignore

# Ignore everything
*

# But not these files...
!Makefile
!*.go

# ...even if they are in subdirectories
!*/

And run GOLIC

GO111MODULE=on GOSUMDB=off go get github.com/AbsaOSS/golic@v0.1.2
$(GOBIN)/golic inject -c="2021 MyCompany ltd."

Usage

Usage:
   inject [flags]

Flags:
  -u, --config-url string   config URL (default "https://raw.githubusercontent.com/AbsaOSS/golic/main/config.yaml")
  -c, --copyright string    company initials entered into license (default "2021 MyCompany")
  -d, --dry                 dry run
  -h, --help                help for inject
  -l, --licignore string    .licignore path (default ".licignore")
  -t, --template string     license key (default "apache2")

Global Flags:
  -v, --verbose   verbose output

Configuration

For more details see: default configuration. Use -u flag to run against custom configuration or create PR.

Documentation

Overview

Copyright 2021 ABSA Group Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic

Directories

Path Synopsis
impl
utils
log

Jump to

Keyboard shortcuts

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