version

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliCommand

func CliCommand() *cobra.Command

func GetGitModelUrl

func GetGitModelUrl() string

func GetLatestVersionFromGit

func GetLatestVersionFromGit() string

func GetLatestVersionInfo

func GetLatestVersionInfo() string

func GetVersion

func GetVersion() string

func GetVersionInfo

func GetVersionInfo() string

func GetVersionInfoWithLatestAndCheck

func GetVersionInfoWithLatestAndCheck() string

Types

type Service

type Service interface {
	GetLatestVersion() (string, error)
	GetCurrentVersion() string
	IsLatestVersion() (bool, error)
}

func NewVersionService

func NewVersionService() Service

type ServiceImpl

type ServiceImpl struct {
	// contains filtered or unexported fields
}

func (*ServiceImpl) GetCurrentVersion

func (v *ServiceImpl) GetCurrentVersion() string

func (*ServiceImpl) GetLatestVersion

func (v *ServiceImpl) GetLatestVersion() (string, error)

func (*ServiceImpl) IsLatestVersion

func (v *ServiceImpl) IsLatestVersion() (bool, error)

type Tag

type Tag struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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