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.
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.
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 LoginCmd ¶ added in v1.4.0
type LoginCmd struct {
NoBrowser bool `help:"${login_arg_nobrowser}"`
}
LoginCmd authenticates and logs into an account.
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.
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.
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.
Click to show internal directories.
Click to hide internal directories.