Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Git = Dependency{ Name: "Git", Cmd: exec.Command("git", "--version"), Help: `Git is required to clone the starter-game-template. Learn how to install Git: https://github.com/git-guides/install-git`, } Go = Dependency{ Name: "Go", Cmd: exec.Command("go", "version"), Help: `Go is required to build and run World Engine game shards. Learn how to install Go: https://go.dev/doc/install`, } Docker = Dependency{ Name: "Docker", Cmd: exec.Command("docker", "--version"), Help: `Docker is required to build and run World Engine game shards. Learn how to install Docker: https://docs.docker.com/engine/install/`, } DockerDaemon = Dependency{ Name: "Docker daemon is running", Cmd: exec.Command("docker", "info"), Help: `Docker daemon needs to be running. If you use Docker Desktop, make sure that you have ran it`, } AlwaysFail = Dependency{ Name: "Always fails", Cmd: exec.Command("false"), Help: `This dependency check will always fail. It can be used for testing.`, } )
Functions ¶
func Check ¶
func Check(deps ...Dependency) error
Types ¶
type Dependency ¶
func (Dependency) Check ¶
func (d Dependency) Check() error
Click to show internal directories.
Click to hide internal directories.