flags

package
v0.0.0-...-96b211d Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(version string, args []string) *Command

func (*Command) Execute

func (c *Command) Execute() error

func (*Command) Parse

func (c *Command) Parse() bool

type Execution

type Execution interface {
	Parse() error
	PrintUsage()

	Name() string
	Execute() error
}

func NewChangeDirectory

func NewChangeDirectory(headAddresses []string, output terminal.Output, target string) Execution

func NewCopy

func NewCopy(headAddresses []string, output terminal.Output, basePath string, args []string) Execution

NewCopy creates the execution of copy operation

func NewList

func NewList(headAddresses []string, output terminal.Output, basePath string, args []string) Execution

NewList creates the execution of list operation

func NewMakeDirectory

func NewMakeDirectory(headAddresses []string, output terminal.Output, basePath string, args []string) Execution

NewMakeDirectory creates the execution of folder creation operation

func NewMove

func NewMove(headAddresses []string, output terminal.Output, basePath string, args []string) Execution

NewMove creates the execution of move operation

func NewRemove

func NewRemove(headAddresses []string, output terminal.Output, basePath string, args []string) Execution

NewRemove creates the execution of remove operation

func NewShell

func NewShell(headAddresses []string, version string) Execution

NewShell creates an environment for all possible file system manipulation operations

func NewTree

func NewTree(headAddresses []string, output terminal.Output, basePath string, args []string) Execution

NewTree creates the execution of tree operation

Jump to

Keyboard shortcuts

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