garden

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirUp = iota
	DirDown
	DirLeft
	DirRight
)

Variables

This section is empty.

Functions

func NewCmdGarden

func NewCmdGarden(f *cmdutil.Factory, runF func(*GardenOptions) error) *cobra.Command

func RGB

func RGB(r, g, b int, x string) string

Types

type Cell

type Cell struct {
	Char       string
	StatusLine string
}

type Commit

type Commit struct {
	Email  string
	Handle string
	Sha    string
	Char   string
}

type Direction

type Direction = int

type GardenOptions

type GardenOptions struct {
	HttpClient func() (*http.Client, error)
	IO         *iostreams.IOStreams
	BaseRepo   func() (ghrepo.Interface, error)

	RepoArg string
}

type Geometry

type Geometry struct {
	Width      int
	Height     int
	Density    float64
	Repository ghrepo.Interface
}

type Player

type Player struct {
	X                   int
	Y                   int
	Char                string
	Geo                 *Geometry
	ShoeMoistureContent int
}

Jump to

Keyboard shortcuts

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