mgr

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output int
const (
	OutputCUI Output = iota
	OutputJSON
)

type Printer

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

func (Printer) Msg

func (p Printer) Msg(msg string, err ...error)

func (Printer) Print

func (p Printer) Print(v any)

func (*Printer) SetOutput

func (p *Printer) SetOutput(o Output)

type WorkManager

type WorkManager struct {
	Printer
	// contains filtered or unexported fields
}

func (*WorkManager) AddUse

func (m *WorkManager) AddUse(dir string) error

func (*WorkManager) ArgUpdate

func (m *WorkManager) ArgUpdate(info string) result

func (*WorkManager) CUIMain

func (m *WorkManager) CUIMain()

func (*WorkManager) DropUse

func (m *WorkManager) DropUse(dir string) error

func (*WorkManager) FindUse

func (m *WorkManager) FindUse(dir string) (*modfile.Use, bool)

func (*WorkManager) GetInfo

func (m *WorkManager) GetInfo() workInfo

func (*WorkManager) Load

func (m *WorkManager) Load(dir string) error

func (*WorkManager) ShowSelectModules

func (m *WorkManager) ShowSelectModules() (add, drop []string, err error)

func (*WorkManager) ShowUsed

func (m *WorkManager) ShowUsed()

func (*WorkManager) Update

func (m *WorkManager) Update(add, drop []string) error

func (*WorkManager) Write

func (m *WorkManager) Write() error

Jump to

Keyboard shortcuts

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