Export LoadAvailable
This commit is contained in:
parent
14a456f006
commit
b5d3b6d213
@ -51,7 +51,7 @@ func Pull(root string) error {
|
|||||||
|
|
||||||
// ListAvailable prints all installable packages
|
// ListAvailable prints all installable packages
|
||||||
func ListAvailable(root string, w io.Writer) error {
|
func ListAvailable(root string, w io.Writer) error {
|
||||||
db, err := loadAvailable(root)
|
db, err := LoadAvailable(root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "loading")
|
return errors.Wrap(err, "loading")
|
||||||
}
|
}
|
||||||
@ -61,7 +61,8 @@ func ListAvailable(root string, w io.Writer) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadAvailable(root string) (pm.Available, error) {
|
// LoadAvailable returns the collection of available packages
|
||||||
|
func LoadAvailable(root string) (pm.Available, error) {
|
||||||
r := pm.Available{}
|
r := pm.Available{}
|
||||||
dbn := filepath.Join(root, rn)
|
dbn := filepath.Join(root, rn)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user