cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCommand

func NewRootCommand() *cobra.Command

func ValidateDocument

func ValidateDocument(document []byte, resolver *validator.Validator) error

func ValidateFile

func ValidateFile(filePath string, resolver *validator.Validator) []error

Types

type ArgumentError

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

type InternalError

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

type OutputFormat

type OutputFormat string
const (
	OutputHuman OutputFormat = "human"
	OutputJSON  OutputFormat = "json"
)

func (*OutputFormat) Set

func (e *OutputFormat) Set(v string) error

Set must have pointer receiver so it doesn't change the value of a copy

func (*OutputFormat) String

func (e *OutputFormat) String() string

String is used both by fmt.Print and by Cobra in help text

func (*OutputFormat) Type

func (e *OutputFormat) Type() string

Type is only used in help text

type ValidationError

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

Jump to

Keyboard shortcuts

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