update

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, sink output.Sink, githubToken string) (string, bool, error)

Check reports whether a newer version is available. Returns the latest version string and true if an update is available.

func Update

func Update(ctx context.Context, sink output.Sink, checkOnly bool, githubToken string) error

Update checks for updates and applies the update if one is available.

Types

type InstallInfo

type InstallInfo struct {
	Method       InstallMethod
	ResolvedPath string
}

InstallInfo holds the detected install method and the resolved binary path.

func DetectInstallMethod

func DetectInstallMethod() InstallInfo

DetectInstallMethod determines how lstk was installed by inspecting the resolved path of the running binary.

type InstallMethod

type InstallMethod int
const (
	InstallBinary   InstallMethod = iota // standalone binary download
	InstallHomebrew                      // installed via Homebrew cask
	InstallNPM                           // installed via npm
)

func (InstallMethod) String

func (m InstallMethod) String() string

Jump to

Keyboard shortcuts

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