commands

package
v0.0.0-...-d6d0e2a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ModulePath string = "./"

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func NewApplication

func NewApplication(args []string, exit func(int)) *Application

func (*Application) Run

func (app *Application) Run()

type Command

type Command interface {
	Execute(args []string) error
	Name() string
}

type CommandFactory

type CommandFactory func(debugFlag *bool) (Command, error)

type FileHandler

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

func NewFileHandler

func NewFileHandler(debugFlag *bool) *FileHandler

func (*FileHandler) Execute

func (f *FileHandler) Execute(args []string) error

func (*FileHandler) Name

func (f *FileHandler) Name() string

type Interpreter

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

func NewInterpreter

func NewInterpreter(debugFlag *bool, ver version.Version) *Interpreter

func (*Interpreter) Execute

func (i *Interpreter) Execute(args []string) error

func (*Interpreter) Name

func (i *Interpreter) Name() string

type VersionCommand

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

func NewVersionCommand

func NewVersionCommand(v version.Version) *VersionCommand

func (*VersionCommand) Execute

func (v *VersionCommand) Execute(args []string) error

func (*VersionCommand) Name

func (v *VersionCommand) Name() string

Jump to

Keyboard shortcuts

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