cli

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SPACE_BETWEEN = 24

Variables

This section is empty.

Functions

func ReadChainFromFileContents

func ReadChainFromFileContents(contents []byte, arch uint, endianness string, paddingLength int) []uint

func WriteChainToFile

func WriteChainToFile(chain []uint, arch uint, endianness string, outFile *os.File)

Types

type Args

type Args = map[string]string

type CatPayload

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

func (CatPayload) Execute

func (c CatPayload) Execute(globalState *global.GlobalState) error

func (CatPayload) Help

func (CatPayload) Help()

func (CatPayload) ValidArgs

func (c CatPayload) ValidArgs() bool

type CatTarget

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

func (CatTarget) Execute

func (c CatTarget) Execute(globalState *global.GlobalState) error

func (CatTarget) Help

func (CatTarget) Help()

func (CatTarget) ValidArgs

func (c CatTarget) ValidArgs() bool

type Command

type Command interface {
	Execute(*global.GlobalState) error
	ValidArgs() bool
	Help()
}

func ParseLine

func ParseLine(line string) (Command, error)

For this project any flags beginning with - take an argument directly following it. Any flags beginning with -- do not take an argument Any non-flag argument is considered the commands singular default argument (i.e <path> in load <path>) and will be represented by "default": "<value>" in the args dictionary.

type Find

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

func (Find) Execute

func (f Find) Execute(globalState *global.GlobalState) error

func (Find) Help

func (Find) Help()

func (Find) ValidArgs

func (f Find) ValidArgs() bool

type Help

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

func (Help) Execute

func (h Help) Execute(_ *global.GlobalState) error

func (Help) Help

func (Help) Help()

func (Help) ValidArgs

func (h Help) ValidArgs() bool

type Load

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

func (Load) Execute

func (l Load) Execute(globalState *global.GlobalState) error

func (Load) Help

func (Load) Help()

func (Load) ValidArgs

func (l Load) ValidArgs() bool

type Pad

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

func (Pad) Execute

func (p Pad) Execute(globalState *global.GlobalState) error

func (Pad) Help

func (Pad) Help()

func (Pad) ValidArgs

func (p Pad) ValidArgs() bool

type Quit

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

func (Quit) Execute

func (Quit) Execute(globalState *global.GlobalState) error

func (Quit) Help

func (Quit) Help()

func (Quit) ValidArgs

func (q Quit) ValidArgs() bool

type Rop

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

func (Rop) Execute

func (r Rop) Execute(globalState *global.GlobalState) error

func (Rop) Help

func (Rop) Help()

func (Rop) ValidArgs

func (r Rop) ValidArgs() bool

type SetPayload

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

func (SetPayload) Execute

func (s SetPayload) Execute(globalState *global.GlobalState) error

func (SetPayload) Help

func (SetPayload) Help()

func (SetPayload) ValidArgs

func (s SetPayload) ValidArgs() bool

type SetTarget

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

func (SetTarget) Execute

func (s SetTarget) Execute(globalState *global.GlobalState) error

func (SetTarget) Help

func (SetTarget) Help()

func (SetTarget) ValidArgs

func (s SetTarget) ValidArgs() bool

type Stat

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

func (Stat) Execute

func (Stat) Execute(globalState *global.GlobalState) error

func (Stat) Help

func (Stat) Help()

func (Stat) ValidArgs

func (s Stat) ValidArgs() bool

Jump to

Keyboard shortcuts

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