Documentation
¶
Index ¶
- func ContainsString(list []string, match string) bool
- func NewOperation(opType string, packages []string, flags []string, autoInstall bool) operation
- func ParseArguments(arguments []string) (*[]string, *[]string)
- func Read(data []byte) (operation, error)
- func RemoveDuplicates(appendList *[]string, baseList *[]string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
Loops through the list and returns true if an item matches the string.
Returns true if the item matched our string. False if not.
func NewOperation ¶
Creates a new operation struct that is used to request a transaction.
After creating a operation, run yourOperation.Process() to install/delete/etc
Accepted types: ("add", "del", "update", "upgrade", "search")
func ParseArguments ¶
Splits packages from flags in string arrays.
Returns a tuple with packages first, and the flags. (&packages, &flags)
Useful for parsing the packages & flags from Cobra
func RemoveDuplicates ¶
Returns a new array based on `baseList` without anything repeated on the append list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.