vercheck

package
v0.0.0-...-99c7921 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion(w io.Writer, commandPath string)

CheckVersion checks the launcher and binary versions and prints a notice if they are out of date.

It will set the checkVersionEnvName to indicate that the version check was done. Callers should call ClearEnvVar after their work is done.

func SelfUpdate

func SelfUpdate(stdOut, stdErr io.Writer) error

SelfUpdate updates the devbox launcher and devbox CLI binary. It ignores and deletes the version cache.

The launcher is a wrapper bash script introduced to manage the auto-update process for devbox. The production devbox application is actually this launcher script that acts as "devbox" and delegates commands to the devbox CLI binary.

func SemverCompare

func SemverCompare(ver1, ver2 string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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