Documentation
¶
Index ¶
Constants ¶
View Source
const TemplateGitURL = "https://github.com/Argus-Labs/starter-game-template.git"
Variables ¶
View Source
var DoctorDeps = []dependency.Dependency{ dependency.Git, dependency.Go, dependency.Docker, dependency.DockerDaemon, }
Functions ¶
Types ¶
type Cmd ¶
type Cmd 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"`
Login *LoginCmd `cmd:"" group:"Getting Started:" help:"Login to World Forge, creating a new account if necessary"`
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"`
Verbose bool ` help:"Enable World CLI Debug logs" flag:"" short:"v"`
}
var CLI Cmd
type CreateCmd ¶ added in v1.8.0
type CreateCmd struct {
Parent *Cmd `kong:"-"`
Dependencies cmdsetup.Dependencies `kong:"-"`
Directory string ` arg:"" optional:"" type:"path" help:"The directory to create the project in"`
}
type DoctorCmd ¶ added in v1.8.0
type DoctorCmd struct {
Parent *Cmd `kong:"-"`
Dependencies cmdsetup.Dependencies `kong:"-"`
}
type Handler ¶
type Handler struct {
AppVersion string
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler( appVersion string, configService config.ServiceInterface, apiClient api.ClientInterface, setupController interfaces.CommandSetupController, browserClient browser.ClientInterface, ) *Handler
func (*Handler) SetAppVersion ¶
type LoginCmd ¶
type LoginCmd struct {
Parent *Cmd `kong:"-"`
Context context.Context `kong:"-"`
Dependencies cmdsetup.Dependencies `kong:"-"`
}
type MockHandler ¶
func (*MockHandler) Create ¶
func (m *MockHandler) Create(directory string) error
func (*MockHandler) Doctor ¶
func (m *MockHandler) Doctor() error
func (*MockHandler) SetAppVersion ¶
func (m *MockHandler) SetAppVersion(version string)
func (*MockHandler) Version ¶
func (m *MockHandler) Version(check bool) error
type VersionCmd ¶ added in v1.8.0
type VersionCmd struct {
Parent *Cmd `kong:"-"`
Dependencies cmdsetup.Dependencies `kong:"-"`
Check bool ` help:"Check for the latest 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.