garden

package
v2.0.1-0...-d4b4061 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

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
const (
	DirUp Direction = iota
	DirDown
	DirLeft
	DirRight
	Quit
)

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