root

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: LGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var AppVersion string

Functions

func NewLogCmd

func NewLogCmd(log string) tea.Cmd

func SetAppVersion added in v1.8.0

func SetAppVersion(version string)

Types

type CreateCmd added in v1.8.0

type CreateCmd struct {
	Parent    *RootCmd `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 *RootCmd `kong:"-"`
}

func (*DoctorCmd) Run added in v1.8.0

func (c *DoctorCmd) Run() error

type HelpCmd added in v1.8.0

type HelpCmd struct {
}

func (*HelpCmd) Run added in v1.8.0

func (c *HelpCmd) Run() error

type NewLogMsg

type NewLogMsg struct {
	Log string
}

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