cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GameoverDir is the directory where games are installed.
	GameoverDir = "~/.gameover"
	// BinariesDir is the directory where binaries are installed.
	BinariesDir = "~/.gameover/bin"
)

Functions

func Execute

func Execute()

func Install

func Install(g *Game) error

func Play

func Play(g *Game) error

Types

type Game

type Game struct {
	Name string `toml:"name"`
	Repo string `toml:"repo"`
}

func FetchGames

func FetchGames() ([]*Game, error)

func FilterGames

func FilterGames(query string, games []*Game) []*Game

func FindGame

func FindGame(name string, games []*Game) *Game

func (*Game) String

func (g *Game) String() string

Jump to

Keyboard shortcuts

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