18 lines
338 B
Go
18 lines
338 B
Go
package info
|
|
|
|
import "github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
|
|
|
|
type SnapshotsFetcher struct {
|
|
ingredient.Base
|
|
|
|
Info *Info
|
|
}
|
|
|
|
func (lbr *SnapshotsFetcher) Fetch(flags ingredient.FetchFlags, info *ingredient.Information) (err error) {
|
|
if flags.Quick {
|
|
return
|
|
}
|
|
|
|
info.Snapshots, _ = lbr.Snapshots()
|
|
return
|
|
}
|