Documentation ¶
Index ¶
- func DownloadJava(version int, cliCtx *cli.Context) (string, error)
- func ExtractTarGz(gzipStream io.Reader, extractPath string)
- func GetArch() string
- func GetServerFolder(path string, cCtx *cli.Context) string
- func GetSha256Hash(filePath string) (string, error)
- func GetStartScript(path string) string
- func InstallJava(javaPath string, cliCtx *cli.Context) error
- func MCVersionToJavaMajor(mcVersion string) (int, error)
- func PrintOSWarnings()
- func RunCommandAndPipeAllSTD(cmd *exec.Cmd, noPrefix bool) error
- func RunCommandAndPipeOutput(cmd *exec.Cmd) error
- func WriteStartScript(path string, ramAmount int, cliCtx *cli.Context) error
- type JavaVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadJava ¶ added in v1.0.0
func ExtractTarGz ¶ added in v1.2.0
func GetServerFolder ¶ added in v1.0.0
func GetSha256Hash ¶ added in v0.2.0
func GetStartScript ¶ added in v1.1.1
func InstallJava ¶ added in v1.0.0
func MCVersionToJavaMajor ¶ added in v0.2.0
func PrintOSWarnings ¶ added in v1.0.0
func PrintOSWarnings()
func RunCommandAndPipeAllSTD ¶ added in v1.1.1
func RunCommandAndPipeOutput ¶ added in v1.0.0
func WriteStartScript ¶ added in v1.0.0
Types ¶
type JavaVersion ¶
func GetJavaVersion ¶
func GetJavaVersion() (JavaVersion, error)
Click to show internal directories.
Click to hide internal directories.