github

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(token *string) (*github.Client, error)

GetClient returns a GitHub client. If a token is provided, it will be used for authentication.

Types

type ReleaseResolution added in v0.0.2

type ReleaseResolution struct {
	Version   string
	AssetName string
	AssetURL  string
}

ReleaseResolution is the selected release, asset, and normalized version to install.

func ResolveToolRelease added in v0.0.2

func ResolveToolRelease(ctx context.Context, token, owner, repo, toolName, version, osName, arch string, includePreRelease bool) (*ReleaseResolution, error)

ResolveToolRelease selects a release and matching asset for a tool install. Assets are matched primarily by tool name (exact or substring match preferred), with optional fallback to repo name. OS and arch indicators are optional but preferred when present. Returns an error if no matching asset is found.

Jump to

Keyboard shortcuts

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