command

package
v1.31.13 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoArguments          = errors.New("expected a subcommand, but got no arguments")
	ErrUnknownCommand       = errors.New("expected a known subcommand")
	ErrInvalidConfiguration = errors.New("invalid configuration")
)

Functions

This section is empty.

Types

type Command

type Command interface {
	Run() error
}

type Comparer

type Comparer struct {
	Datreeio, Current, Out, Ignore string
	// contains filtered or unexported fields
}

func NewComparer

func NewComparer(datreeio, current, output, ignore string, flags *flag.FlagSet) Comparer

func (Comparer) Run

func (cmd Comparer) Run() error

type Updater

type Updater struct {
	Configuration, Output string
	Logger                io.Writer
	// contains filtered or unexported fields
}

func NewUpdater

func NewUpdater(configuration, output string, logger io.Writer, flags *flag.FlagSet) Updater

func (Updater) Run

func (cmd Updater) Run() error

type Verifier

type Verifier struct {
	Schema, File string
	Logger       io.Writer
	// contains filtered or unexported fields
}

func NewVerifier

func NewVerifier(schema, file string, flags *flag.FlagSet) Verifier

func (Verifier) Run

func (cmd Verifier) Run() error

Jump to

Keyboard shortcuts

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