ficsit-cli-flake/tea/components/types.go

31 lines
726 B
Go
Raw Normal View History

2021-12-02 04:00:33 +00:00
package components
import (
"github.com/Khan/genqlient/graphql"
tea "github.com/charmbracelet/bubbletea"
resolver "github.com/satisfactorymodding/ficsit-resolver"
2022-10-14 16:11:16 +00:00
2021-12-02 04:00:33 +00:00
"github.com/satisfactorymodding/ficsit-cli/cli"
"github.com/satisfactorymodding/ficsit-cli/cli/provider"
2021-12-02 04:00:33 +00:00
)
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
2021-12-02 04:00:33 +00:00
Size() tea.WindowSizeMsg
SetSize(size tea.WindowSizeMsg)
View() string
Height() int
}