Documentation
¶
Index ¶
Constants ¶
View Source
const TemplateGitURL = "https://github.com/Argus-Labs/starter-game-template.git"
Variables ¶
View Source
var AppVersion string
View Source
var DoctorDeps = []dependency.Dependency{ dependency.Git, dependency.Go, dependency.Docker, dependency.DockerDaemon, }
Functions ¶
func SetAppVersion ¶ added in v1.8.0
func SetAppVersion(version string)
Types ¶
type CreateCmd ¶ added in v1.8.0
type Release ¶
type Release struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
HTMLURL string `json:"html_url"`
}
Release structure to hold the data of the latest release.
type RootCmd ¶ added in v1.8.0
type RootCmd struct {
Create *CreateCmd `cmd:"" group:"Getting Started:" help:"Create a new World Engine project"`
Doctor *DoctorCmd `cmd:"" group:"Getting Started:" help:"Check your development environment"`
kong.Plugins // put this here so tools will be in the right place
Version *VersionCmd `cmd:"" group:"Additional Commands:" help:"Show the version of the CLI"`
// Help *root.HelpCmd `cmd:"" default:"1" group:"Additional Commands:" help:"Show more detailed help"`
Verbose bool ` help:"Enable World CLI Debug logs" flag:"" short:"v"`
}
var CLI RootCmd
type VersionCmd ¶ added in v1.8.0
type VersionCmd struct {
Parent *RootCmd `kong:"-"`
Check bool `help:"Check for the latest version of the CLI"`
}
VersionCmd is the command to show the version of the CLI.
func (*VersionCmd) Run ¶ added in v1.8.0
func (c *VersionCmd) Run() error
type WorldCreateModel ¶
type WorldCreateModel struct {
// contains filtered or unexported fields
}
func NewWorldCreateModel ¶
func NewWorldCreateModel(directory string) WorldCreateModel
func (WorldCreateModel) Init ¶
func (m WorldCreateModel) Init() tea.Cmd
Init returns an initial command for the application to run.
func (WorldCreateModel) View ¶
func (m WorldCreateModel) View() string
View renders the UI based on the data in the WorldCreateModel.
type WorldDoctorModel ¶
type WorldDoctorModel struct {
DepStatus []teacmd.DependencyStatus
DepStatusErr error
}
func NewWorldDoctorModel ¶
func NewWorldDoctorModel() WorldDoctorModel
func (WorldDoctorModel) Init ¶
func (m WorldDoctorModel) Init() tea.Cmd
Init returns an initial command for the application to run.
func (WorldDoctorModel) View ¶
func (m WorldDoctorModel) View() string
View renders the model to the screen.
Click to show internal directories.
Click to hide internal directories.