ingredient/info: Add Fetcher concept
This commit is contained in:
parent
a6501b42c7
commit
52559e4d68
22 changed files with 447 additions and 328 deletions
18
internal/wisski/ingredient/info/snapshots.go
Normal file
18
internal/wisski/ingredient/info/snapshots.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue