mode

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode struct {
	CurrentMode string
	// contains filtered or unexported fields
}

func InitMode

func InitMode(modeFileName string, cfgFile string) Mode

func (*Mode) CheckMode

func (c *Mode) CheckMode(mode string) (bool, error)

func (*Mode) GetMode

func (c *Mode) GetMode() string

func (*Mode) GetModeConfig

func (c *Mode) GetModeConfig() ([]string, error)

func (*Mode) GetModes

func (c *Mode) GetModes() map[string]string

func (*Mode) PrintListModes

func (c *Mode) PrintListModes()

func (*Mode) SetMode

func (c *Mode) SetMode(modeName string) (bool, error)

Jump to

Keyboard shortcuts

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