root

package
v1.9.0-test2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: LGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const TemplateGitURL = "https://github.com/Argus-Labs/starter-game-template.git"

Variables

Functions

func NewLogCmd

func NewLogCmd(log string) tea.Cmd

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"`
}

func (*CreateCmd) Run added in v1.8.0

func (c *CreateCmd) Run() error

type DoctorCmd added in v1.8.0

type DoctorCmd struct {
	Parent       *Cmd                  `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
}

func (*DoctorCmd) Run added in v1.8.0

func (c *DoctorCmd) Run() error

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) Create

func (h *Handler) Create(directory string) error

func (*Handler) Doctor

func (h *Handler) Doctor() error

func (*Handler) Login

func (h *Handler) Login(ctx context.Context) error

func (*Handler) SetAppVersion

func (h *Handler) SetAppVersion(version string)

func (*Handler) Version

func (h *Handler) Version(check bool) error

type LoginCmd

type LoginCmd struct {
	Parent       *Cmd                  `kong:"-"`
	Context      context.Context       `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
}

func (*LoginCmd) Run

func (c *LoginCmd) Run() error

type MockHandler

type MockHandler struct {
	mock.Mock
}

func (*MockHandler) Create

func (m *MockHandler) Create(directory string) error

func (*MockHandler) Doctor

func (m *MockHandler) Doctor() error

func (*MockHandler) Login

func (m *MockHandler) Login(ctx context.Context) error

func (*MockHandler) SetAppVersion

func (m *MockHandler) SetAppVersion(version string)

func (*MockHandler) Version

func (m *MockHandler) Version(check bool) error

type NewLogMsg

type NewLogMsg struct {
	Log string
}

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) Update

func (m WorldCreateModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles incoming events and updates the model accordingly.

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) Update

func (m WorldDoctorModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles incoming events and updates the model accordingly.

func (WorldDoctorModel) View

func (m WorldDoctorModel) View() string

View renders the model to the screen.

Jump to

Keyboard shortcuts

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