ficsit-cli-flake/tea/components/types.go
Vilsol 5f2e60a9e2
feat: multi targets (#44)
* feat: use mod version targets

* chore: lint

* chore: remove unused

* chore: target dev on ci

* fix: rename WindowsNoEditor target to Windows
fix: close file reader

* fix: ensure closure of downloaded mod

* fix: ensure all important events are sent

* fix: lock adding files to cache

---------

Co-authored-by: mircearoata <mircearoatapalade@gmail.com>
2023-12-07 18:57:31 +02:00

28 lines
624 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.Provider
Size() tea.WindowSizeMsg
SetSize(size tea.WindowSizeMsg)
View() string
Height() int
}