cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 15 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:"" help:"${login}"`
	Logout Logout `cmd:"" help:"${logout}"`
}

type Create

type Create struct {
	ID            string `arg:"" help:"${create_arg_id}"`
	Loader        string `help:"${create_arg_loader}" enum:"fabric,quilt,neoforge,forge,vanilla" default:"vanilla" short:"l"`
	Version       string `help:"${create_arg_version}" default:"release" short:"v"`
	LoaderVersion string `help:"${create_arg_loaderversion}" default:"latest"`
}

func (*Create) Run

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

type Delete

type Delete struct {
	ID  string `arg:"" name:"id" help:"${delete_arg_id}"`
	Yes bool   `name:"yes" short:"y" help:"${delete_arg_yes}"`
}

func (*Delete) Run

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

type Instance

type Instance struct {
	Create Create `cmd:"" help:"${create}"`
	Delete Delete `cmd:"" help:"${delete}"`
	Rename Rename `cmd:"" help:"${rename}"`
	List   List   `cmd:"" help:"${list}"`
}

type List

type List struct{}

func (*List) Run

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

type Login

type Login struct {
	NoBrowser bool `help:"${login_arg_nobrowser}"`
}

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

type Rename struct {
	ID  string `arg:"" help:"${rename_arg_id}"`
	New string `arg:"" help:"${rename_arg_new}"`
}

func (*Rename) Run

func (c *Rename) Run(ctx *kong.Context) error
type Search struct {
	Query   string `arg:"" help:"${search_arg_query}" optional:""`
	Kind    string `help:"${search_arg_kind}" short:"k" enum:"versions,fabric,quilt" default:"versions"`
	Reverse bool   `short:"r" help:"${search_arg_reverse}"`
}

func (*Search) Run

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

type Start

type Start struct {
	ID string `arg:"" name:"id" help:"${start_arg_id}"`

	Options struct {
		Username    string `help:"${start_arg_username}" short:"u"`
		Server      string `help:"${start_arg_server}" short:"s" placeholder:"IP" xor:"quickplay"`
		World       string `help:"${start_arg_world}" short:"w" placeholder:"NAME" xor:"quickplay"`
		Demo        bool   `help:"${start_arg_demo}"`
		DisableMP   bool   `help:"${start_arg_disablemp}"`
		DisableChat bool   `help:"${start_arg_disablechat}"`
	} `embed:"" group:"opts"`
	Overrides struct {
		Width     int    `help:"${start_arg_width}" and:"size"`
		Height    int    `help:"${start_arg_height}" and:"size"`
		JVM       string `help:"${start_arg_jvm}" type:"path" placeholder:"PATH"`
		JVMArgs   string `help:"${start_arg_jvmargs}"`
		MinMemory int    `help:"${start_arg_minmemory}" placeholder:"MB" and:"memory"`
		MaxMemory int    `help:"${start_arg_maxmemory}" placeholder:"MB" and:"memory"`
	} `embed:"" group:"overrides"`
}

func (*Start) Run

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

Jump to

Keyboard shortcuts

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