cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDocument added in v0.3.0

func AddDocument(parent *cobra.Command)

func AddGenerate added in v0.3.0

func AddGenerate(parent *cobra.Command)

func AddOutline added in v0.3.0

func AddOutline(parent *cobra.Command)

func AddQuery added in v0.3.0

func AddQuery(parent *cobra.Command)

func AddValidate added in v0.3.0

func AddValidate(parent *cobra.Command)

func Execute

func Execute()

Execute builds the command

Types

type CSVPrinter added in v0.6.0

type CSVPrinter struct{}

func (*CSVPrinter) PrintObjectList added in v0.6.0

func (p *CSVPrinter) PrintObjectList(opts queryOptions, objects map[string]spdx.Object, w io.Writer) error

type JSONPrinter added in v0.6.0

type JSONPrinter struct{}

func (*JSONPrinter) PrintObjectList added in v0.6.0

func (p *JSONPrinter) PrintObjectList(opts queryOptions, objects map[string]spdx.Object, w io.Writer) error

type LinePrinter added in v0.6.0

type LinePrinter struct{}

func (*LinePrinter) PrintObjectList added in v0.6.0

func (p *LinePrinter) PrintObjectList(opts queryOptions, objects map[string]spdx.Object, w io.Writer) error

type Printer added in v0.6.0

type Printer interface {
	PrintObjectList(queryOptions, map[string]spdx.Object, io.Writer) error
}

Printer is an interface that takes a list of SPDX objects and prints to a writer a representation of it.

Jump to

Keyboard shortcuts

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