cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

cmd/preview.go

Index

Constants

View Source
const (
	LatestReleaseURL = "https://github.com/a3chron/stellar/releases/latest/download"
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

func IsDev added in v0.1.6

func IsDev() bool

IsDev returns true if running a development build

func IsUpdateAvailable added in v0.1.5

func IsUpdateAvailable() (bool, string, error)

IsUpdateAvailable checks if a newer version is available

func SetVersionInfo added in v0.1.5

func SetVersionInfo(version, commit, date string)

SetVersionInfo is called from main to set version information

Types

type GitHubRelease added in v0.1.5

type GitHubRelease struct {
	TagName     string    `json:"tag_name"`
	Name        string    `json:"name"`
	PublishedAt time.Time `json:"published_at"`
	HTMLURL     string    `json:"html_url"`
}

func GetLatestRelease added in v0.1.5

func GetLatestRelease() (*GitHubRelease, error)

GetLatestRelease fetches the latest GitHub release information

Jump to

Keyboard shortcuts

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