cmd

package
v0.0.0-...-32e1149 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Auth = &cli.Command{
	Name:  "auth",
	Usage: "Manage account authentication",
	Subcommands: []*cli.Command{
		{
			Name:   "logout",
			Usage:  "Log out from account",
			Action: logout,
		},
		{
			Name:   "login",
			Usage:  "Log in to an account",
			Action: login,
		},
	},
}
View Source
var Mod = &cli.Command{
	Name:  "mod",
	Usage: "Add and manage mods and resource packs",
	Subcommands: []*cli.Command{
		{
			Name:      "download",
			Usage:     "Download mods (modrinth)",
			Args:      true,
			ArgsUsage: "<id> <instance> [fabric|quilt]",
			Action:    download,
		},
		{
			Name:      "info",
			Usage:     "Show info about mods (modrinth)",
			Args:      true,
			ArgsUsage: "<id>",
			Action:    info,
		},
		{
			Name:      "show",
			Usage:     "Open mods directory for the specified instance",
			Args:      true,
			ArgsUsage: "<instance>",
			Action:    show,
		},
	},
}
View Source
var Start = &cli.Command{
	Name:      "start",
	Usage:     "Start the game",
	Args:      true,
	ArgsUsage: " <version>",
	Action:    start,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "username",
			Usage:   "Set your username to the provided value (launch game in offline mode)",
			Aliases: []string{"u"},
		},
		&cli.StringFlag{
			Name:    "loader",
			Usage:   "Set the mod loader to use",
			Aliases: []string{"l"},
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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