Documentation
¶
Index ¶
- func CheckVersion()
- func CliCommand() *cobra.Command
- func GetGitModelUrl() string
- func GetLatestVersionFromGit() string
- func GetLatestVersionInfo() string
- func GetVersion() string
- func GetVersionInfo() string
- func GetVersionInfoWithLatestAndCheck() string
- func Version() string
- type Tag
- type VersionService
- type VersionServiceImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
func CheckVersion()
func CliCommand ¶
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 VersionService ¶
type VersionService interface {
GetLatestVersion() (string, error)
GetCurrentVersion() string
IsLatestVersion() (bool, error)
}
func NewVersionService ¶
func NewVersionService() VersionService
type VersionServiceImpl ¶
type VersionServiceImpl struct {
// contains filtered or unexported fields
}
func (*VersionServiceImpl) GetCurrentVersion ¶
func (v *VersionServiceImpl) GetCurrentVersion() string
func (*VersionServiceImpl) GetLatestVersion ¶
func (v *VersionServiceImpl) GetLatestVersion() (string, error)
func (*VersionServiceImpl) IsLatestVersion ¶
func (v *VersionServiceImpl) IsLatestVersion() (bool, error)
Click to show internal directories.
Click to hide internal directories.