command

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: GPL-3.0 Imports: 1 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 {
	Name      string
	Flag      string
	Condition func(*manager.Manager) bool
	Functions []func(*manager.Manager, []string)
	DependsOn []func(*manager.Manager, []string)
}

func (Command) GetCondition

func (command Command) GetCondition(mgr *manager.Manager) bool

func (Command) GetDependsOn

func (command Command) GetDependsOn() []func(*manager.Manager, []string)

func (Command) GetFunctions

func (command Command) GetFunctions() []func(*manager.Manager, []string)

func (Command) GetName

func (command Command) GetName() string

Jump to

Keyboard shortcuts

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