cmd

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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 AuthCmd added in v1.4.0

type AuthCmd struct {
	Login  LoginCmd  `cmd:"" help:"${login}"`
	Logout LogoutCmd `cmd:"" help:"${logout}"`
}

AuthCmd enables management of an account.

type CreateCmd added in v1.4.0

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

CreateCmd creates a new instance with specified parameters.

func (*CreateCmd) Run added in v1.4.0

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

type DeleteCmd added in v1.4.0

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

DeleteCmd removes the specified instance.

func (*DeleteCmd) Run added in v1.4.0

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

type InstanceCmd added in v1.4.0

type InstanceCmd struct {
	Create CreateCmd `cmd:"" help:"${create}"`
	Delete DeleteCmd `cmd:"" help:"${delete}"`
	Rename RenameCmd `cmd:"" help:"${rename}"`
	List   ListCmd   `cmd:"" help:"${list}"`
}

InstanceCmd enables management of Minecraft instances.

type ListCmd added in v1.4.0

type ListCmd struct{}

ListCmd lists all installed instances.

func (*ListCmd) Run added in v1.4.0

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

type LoginCmd added in v1.4.0

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

LoginCmd authenticates and logs into an account.

func (*LoginCmd) Run added in v1.4.0

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

type LogoutCmd added in v1.4.0

type LogoutCmd struct{}

LogoutCmd logs out of the current account.

func (*LogoutCmd) Run added in v1.4.0

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

type RenameCmd added in v1.4.0

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

RenameCmd renames the specified instance.

func (*RenameCmd) Run added in v1.4.0

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

type SearchCmd added in v1.4.0

type SearchCmd struct {
	Query   string `arg:"" help:"${search_arg_query}" optional:""`
	Kind    string `help:"${search_arg_kind}" short:"k" enum:"versions,fabric,quilt,forge" default:"versions"`
	Reverse bool   `short:"r" help:"${search_arg_reverse}"`
}

SearchCmd enables search of game and mod loader versions.

func (*SearchCmd) Run added in v1.4.0

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

type StartCmd added in v1.4.0

type StartCmd struct {
	ID string `arg:"" help:"${start_arg_id}"`

	Prepare bool `help:"${start_arg_prepare}"`

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

StartCmd runs an instance with the specified options.

func (*StartCmd) Run added in v1.4.0

func (c *StartCmd) 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