version

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 added in v1.2.0

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

func NewVersionService

func NewVersionService() Service

type ServiceImpl added in v1.2.0

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

func (*ServiceImpl) GetCurrentVersion added in v1.2.0

func (v *ServiceImpl) GetCurrentVersion() string

func (*ServiceImpl) GetLatestVersion added in v1.2.0

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

func (*ServiceImpl) IsLatestVersion added in v1.2.0

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