licenses

command module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

README

Build Status Go Report Card GoDoc Release

licenses uses go list tool over a Go workspace to collect the dependencies of a package or command, detect their license if any and match them against well-known templates. Require Golang 1.16 or above to build this project such supports Go Modules.

Inspired by https://github.com/pmezard/licenses.

Installation

$ go install github.com/avence12/licenses@latest

Quick Start

  • Show all licenses of github.com/spf13/cobra and its dependencies
# download source code and get to the download folder
$ go get -u -d github.com/spf13/cobra
$ cd $GOPATH/pkg/mod/github.com/spf13/cobra*

# check licenses
$ licenses github.com/spf13/cobra

github.com/inconshreveable/mousetrap  Apache License 2.0
github.com/spf13/cobra                Apache License 2.0 (95%)
github.com/spf13/pflag                BSD 3-clause "New" or "Revised" License (96%)
  • Unmatched license words can be displayed with:
$ licenses -w github.com/spf13/pflag
github.com/spf13/pflag  BSD 3-clause "New" or "Revised" License (96%)
                        +words: google, inc, owner
                        -words: all, rights, reserved, project, holder

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