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) RemovedLines ¶
type Indexer ¶
type Indexer interface { Write(newLines []string) error RemovedLines() []string Lines() []string // contains filtered or unexported methods }
func NewIndexer ¶
type Items ¶
type Items struct {
// contains filtered or unexported fields
}
func (*Items) Action ¶
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)
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
Click to show internal directories.
Click to hide internal directories.