mapper

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallPackages

func InstallPackages(c configuration.PkgManagers) error

InstallPackages install all packages from the configuration file by installation order

Types

type Index

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

func (*Index) Lines

func (i *Index) Lines() []string

func (*Index) RemovedLines

func (i *Index) RemovedLines() []string

func (*Index) Write

func (i *Index) Write(newLines []string) error

Write add lines stored in memory the .index file

type Indexer

type Indexer interface {
	Write(newLines []string) error

	RemovedLines() []string
	Lines() []string
	// contains filtered or unexported methods
}

func NewIndexer

func NewIndexer(repoPath string) (Indexer, error)

type Items

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

func (*Items) Action

func (e *Items) Action(action string)

Action performs a "save" or "load" action on all given items.

Any error is printed to STDERR and item is skipped.

If the performed action is "save", it'll also write the `.index` file with all new items.

func (*Items) AddItems

func (e *Items) AddItems(items []configuration.OSLocation)

func (*Items) CleanUp

func (e *Items) CleanUp(removedLines []string) error

type ItemsActions

type ItemsActions interface {
	Action(action string)
	AddItems(items []configuration.OSLocation)
	CleanUp(removedLines []string) error
}

func NewItemsActions

func NewItemsActions(items []configuration.OSLocation, storage string, repository git.RepositoryActions, indexer Indexer) ItemsActions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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