cmd

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGameConfigDir

func DefaultGameConfigDir() string

func DefaultGameConfigPath

func DefaultGameConfigPath(g *game.Game) string

func Execute

func Execute()

func FollowGameText added in v0.0.14

func FollowGameText(ctx context.Context, out io.Writer, g *game.Game, status *GameProcessStatus, opts RunGameOptions) error

func NewInstallCommand

func NewInstallCommand() *cobra.Command

func NewInstallHookCommand added in v0.0.14

func NewInstallHookCommand() *cobra.Command

func NewRunGameCommand

func NewRunGameCommand() *cobra.Command

func NewRunnerConfigCommand added in v0.0.14

func NewRunnerConfigCommand() *cobra.Command

func PickGameTUI

func PickGameTUI(games []*game.Game) (*game.Game, error)

func SyncGameProcess

func SyncGameProcess(
	ctx context.Context,
	out io.Writer,
	g *game.Game,
	status *GameProcessStatus,
	opts RunGameOptions,
) error

Types

type GameProcessStatus added in v0.0.14

type GameProcessStatus struct {
	PID     int
	Message string
	Status  int
	// contains filtered or unexported fields
}

func RunSelectedGame

func RunSelectedGame(ctx context.Context, g *game.Game, opts RunGameOptions) (*GameProcessStatus, error)

func (*GameProcessStatus) Kill added in v0.0.14

func (p *GameProcessStatus) Kill() error

func (*GameProcessStatus) Wait added in v0.0.14

func (p *GameProcessStatus) Wait() error

type InstallHookOptions added in v0.0.14

type InstallHookOptions struct {
	ConfigDir       string
	Engine          string
	NoSave          bool
	HookFilter      []string
	ClearHookFilter bool
}

type InstallOptions

type InstallOptions struct {
	TextHook bool
	Output   string
	Print    bool
	NoSave   bool
}

type RunGameOptions

type RunGameOptions struct {
	Background     bool
	List           bool
	ConfigDir      string
	VirtualDesktop string

	Sync    bool
	Follow  bool
	LogFile string
}

type RunnerConfigOptions added in v0.0.14

type RunnerConfigOptions struct {
	ConfigDir             string
	Import                string
	Export                string
	ImportWineConfig      string
	ExportWineConfig      string
	ImportGamescopeConfig string
	ExportGamescopeConfig string
	NoSave                bool

	Runner       string
	RunnerPath   string
	WineBin      string
	GamescopeBin string
	WinePrefix   string
	WorkingDir   string
	Arch         string
	Background   bool

	ClearEnv            bool
	Env                 []string
	ClearDeps           bool
	Dependencies        []string
	TextHookFilter      []string
	ClearTextHookFilter bool

	Resolution       string
	OutputResolution string
	RefreshRate      int
	Fullscreen       bool
	Borderless       bool
	ForceGrab        bool
	SteamDeck        bool
	ExposeWayland    bool
	Scaler           string
	Filter           string
	ExtraArgs        []string
	ClearExtraArgs   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL