e4b02a792d
* chore: move mod downloading to cli/cache * feat: data providers, ficsit and local * feat: keep cache in memory, load on init * feat: log invalid cache files instead of returning error * chore: make linter happy * feat: fill cached mod Authors field from CreatedBy * chore: make linter happy again * feat: add icon and size to cached mods * feat: cache the cached file hashes * fix: change to new provider access style --------- Co-authored-by: Vilsol <me@vil.so>
28 lines
630 B
Go
28 lines
630 B
Go
package components
|
|
|
|
import (
|
|
"github.com/Khan/genqlient/graphql"
|
|
tea "github.com/charmbracelet/bubbletea"
|
|
|
|
"github.com/satisfactorymodding/ficsit-cli/cli"
|
|
"github.com/satisfactorymodding/ficsit-cli/cli/provider"
|
|
)
|
|
|
|
type RootModel interface {
|
|
GetGlobal() *cli.GlobalContext
|
|
|
|
GetCurrentProfile() *cli.Profile
|
|
SetCurrentProfile(profile *cli.Profile) error
|
|
|
|
GetCurrentInstallation() *cli.Installation
|
|
SetCurrentInstallation(installation *cli.Installation) error
|
|
|
|
GetAPIClient() graphql.Client
|
|
GetProvider() *provider.MixedProvider
|
|
|
|
Size() tea.WindowSizeMsg
|
|
SetSize(size tea.WindowSizeMsg)
|
|
|
|
View() string
|
|
Height() int
|
|
}
|