cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Login  Login  `cmd:"" name:"login" help:"Log in to an account"`
	Logout Logout `cmd:"" name:"logout" help:"Log out of an account"`
}

type Create

type Create struct {
	ID      string `arg:"" name:"id" help:"Instance name"`
	Loader  string `name:"loader" help:"Mod loader to use" enum:"fabric,quilt,vanilla" default:"vanilla" short:"l"`
	Version string `name:"version" help:"Game version" default:"release" short:"v"`
}

func (*Create) Run

func (c *Create) Run(ctx *kong.Context) error

type Delete

type Delete struct {
	ID string `arg:"" name:"id" help:"Instance to delete"`
}

func (*Delete) Run

func (c *Delete) Run(ctx *kong.Context) error

type Login

type Login struct {
	NoBrowser bool `name:"no-browser" help:"Use device code instead of browser for authentication"`
}

func (*Login) Run

func (c *Login) Run(ctx *kong.Context) error

type Logout

type Logout struct{}

func (*Logout) Run

func (c *Logout) Run(ctx *kong.Context) error
type Search struct {
	Query   string `arg:"" name:"query" help:"Search query" optional:""`
	Kind    string `name:"kind" help:"What to search for" short:"k" enum:"instances,versions,fabric,quilt" default:"instances"`
	Reverse bool   `name:"reverse" short:"r" help:"Reverse the listing"`
}

func (*Search) Run

func (c *Search) Run(ctx *kong.Context) error

type Start

type Start struct {
	ID          string `arg:"" name:"id" help:"Instance to launch"`
	Username    string `name:"username" help:"Set your username to the provided value (launches game in offline mode)" short:"u"`
	Server      string `name:"server" help:"Join a server immediately upon starting the game" short:"s"`
	Demo        bool   `name:"demo" help:"Start the game in demo mode"`
	DisableMP   bool   `name:"disable-mp" help:"Disable multiplayer"`
	DisableChat bool   `name:"disable-chat" help:"Disable chat"`
	Width       int    `name:"width" help:"Game window width" group:"Configuration Overrides"`
	Height      int    `name:"height" help:"Game window height" group:"Configuration Overrides" `
	JVM         string `name:"jvm" help:"Path to the JVM to use" group:"Configuration Overrides" type:"path" placeholder:"PATH"`
	MinMemory   int    `name:"min-memory" help:"Minimum memory" group:"Configuration Overrides" placeholder:"MB"`
	MaxMemory   int    `name:"max-memory" help:"Maximum memory" group:"Configuration Overrides" placeholder:"MB"`
}

func (*Start) Run

func (c *Start) Run(ctx *kong.Context) error

Jump to

Keyboard shortcuts

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