ficsit-cli-flake/tea/components/types.go
mircearoata d744884f25
feat: remove SML references (#64)
* feat: update ficsit-resolver

* feat: remove SML references

* feat: read GameVersion from uplugin

* ci: docker-compose => docker compose
2024-08-14 03:27:07 +03:00

30 lines
726 B
Go

package components
import (
"github.com/Khan/genqlient/graphql"
tea "github.com/charmbracelet/bubbletea"
resolver "github.com/satisfactorymodding/ficsit-resolver"
"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.Provider
GetResolver() resolver.DependencyResolver
Size() tea.WindowSizeMsg
SetSize(size tea.WindowSizeMsg)
View() string
Height() int
}