cmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TiB uint64 = 1099511627776 // Tebibyte: 1024 * 1024 * 1024 * 1024
	TB         = TiB
	GiB uint64 = 1073741824 // Gibibyte: 1024 * 1024 * 1024
	GB         = GiB
	MiB uint64 = 1048576 // Mebibyte: 1024 * 1024
	MB         = MiB
	KiB uint64 = 1024 // Kibibyte
	KB         = KiB
)
View Source
var (
	ErrServerNotFound = errors.New("服务器不存在, 你可以使用 'MCST list' 命令查看所有已创建的服务器")
	ErrServerExists   = errors.New("服务器已存在, 你可以使用 'MCST list' 命令查看所有已创建的服务器")
)
View Source
var (
	ErrXmsToLow                 = errors.New("java初始堆内存不得小于1048576B(1MiB)")
	ErrXmxTooLow                = errors.New("java最大堆内存不得小于1048576(1MiB)")
	ErrXmxLessThanXms           = errors.New("java最大堆内存不得小于java初始堆内存")
	ErrXmxExceedsPhysicalMemory = errors.New("java最大堆内存不得大于物理内存")
	ErrXmsExceedsPhysicalMemory = errors.New("java初始堆内存不得大于物理内存")
)
View Source
var ErrCoreNotFound = errors.New("核心不存在")
View Source
var ErrEulaRequired = errors.New("微软要求必须同意EULA协议(https://aka.ms/MinecraftEULA/)")
View Source
var ErrInvalidUnit = errors.New("这不是一个有效的单位")

Functions

func Execute

func Execute(args []string, exit func(code int))

Types

This section is empty.

Jump to

Keyboard shortcuts

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