cmd

command
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Extracts license, deprecation, and exception ids from the official spdx license list data. The source data needs to be manually updated by copying the licenses.json file from https://github.com/spdx/license-list-data/blob/main/json/licenses.json and exceptions.json file from https://github.com/spdx/license-list-data/blob/main/json/exceptions.json.

After running the extract command, the generated license, deprecated license, exception, and license range Go files in spdxexp/spdxlicenses will be overwritten with data derived from the SPDX license list.

Command to run all extractions (run command from the /cmd directory):

cd cmd
go run . extract -l -e

Usage options:

-h: prints this help message
-l: Extract licenses and ranges
-e: Extract exception ids

Directories

Path Synopsis
Package main validates newline-separated SPDX expressions from stdin or a file.
Package main validates newline-separated SPDX expressions from stdin or a file.

Jump to

Keyboard shortcuts

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