export

package
v0.0.0-...-d0a1feb Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:     "export {csv | json}",
	Short:   "Prints all modules and their licenses in either CSV or JSON format for license compliance usecases.",
	Example: "go-licenses export csv > licenses.csv",
	Args:    cobra.ExactArgs(1),
	RunE:    runCommand,
}

Functions

This section is empty.

Types

type CSVWriter

type CSVWriter struct {
	// contains filtered or unexported fields
}

func NewCSVWriter

func NewCSVWriter(output io.Writer) *CSVWriter

func (*CSVWriter) WriteModules

func (writer *CSVWriter) WriteModules(mods []modules.Module) error

type JSONWriter

type JSONWriter struct {
	// contains filtered or unexported fields
}

func NewJSONWriter

func NewJSONWriter(output io.Writer) *JSONWriter

func (*JSONWriter) WriteModules

func (writer *JSONWriter) WriteModules(mods []modules.Module) error

Jump to

Keyboard shortcuts

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