cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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,neoforge,forge,vanilla" default:"vanilla" short:"l"`
	Version       string `name:"version" help:"Game version" default:"release" short:"v"`
	LoaderVersion string `name:"loader-version" help:"Loader version" default:"latest"`
}

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"`
	Yes bool   `name:"yes" short:"y" help:"Assume yes to all questions"`
}

func (*Delete) Run

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

type Instance added in v1.1.0

type Instance struct {
	Create Create `cmd:"" help:"Create a new instance"`
	Delete Delete `cmd:"" help:"Delete an instance"`
	Rename Rename `cmd:"" help:"Rename an instance"`
	List   List   `cmd:"" help:"List all instances"`
}

type List added in v1.1.0

type List struct{}

func (*List) Run added in v1.1.0

func (c *List) 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 Rename added in v1.1.0

type Rename struct {
	ID  string `arg:"" name:"id" help:"Instance to rename"`
	New string `arg:"" name:"new" help:"New name for instance"`
}

func (*Rename) Run added in v1.1.0

func (c *Rename) 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:"versions,fabric,quilt" default:"versions"`
	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"`
	Verbose bool   `name:"verbose" help:"Increase verbosity" short:"v"`

	Username    string `name:"username" help:"Set your username to the provided value (launches game in offline mode)" short:"u" group:"Game Options"`
	Server      string `name:"server" help:"Join a server immediately upon starting the game" short:"s" group:"Game Options"`
	Demo        bool   `name:"demo" help:"Start the game in demo mode" group:"Game Options"`
	DisableMP   bool   `name:"disable-mp" help:"Disable multiplayer" group:"Game Options"`
	DisableChat bool   `name:"disable-chat" help:"Disable chat" group:"Game Options"`
	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