golicense

command module
v0.0.0-...-dfced06 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 8 Imported by: 0

README

golicense

CLI tool for generating license files.

Installation

go install github.com/0x0Dx/x/golicense@latest

Usage

# Generate a license to stdout
golicense mit

# Generate a license and write to file
golicense -out mit

# Show all available licenses
golicense -show
Options
  • -name - Author name (defaults to git config user.name)
  • -email - Author email (defaults to git config user.email)
  • -out - Write to LICENSE file instead of stdout
  • -show - List all available licenses

Available Licenses

  • Public Domain: CC0, Unlicense
  • Permissive: MIT, Apache-2, BSD-0, BSD-2, BSD-3, ISC
  • GPL: GPL-2, GPL-3, AGPL-3, LGPL-2
  • Copyleft-ish: LGPL-2, MPL-2
  • Weird: Be Gay Do Crimes, WTFPL, YOLO, BOLA, DWTFAWWI, Hot Potato, Curse of Knowledge

Documentation

Overview

Package main provides a CLI tool for generating license files.

Directories

Path Synopsis
Package licenses provides license file templates and generation.
Package licenses provides license file templates and generation.

Jump to

Keyboard shortcuts

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