Documentation ¶
Index ¶
- func Check()
- func Display()
- func DownloadAndInstall(version string) (string, error)
- func GetInstallPath(version string) string
- func GetLatest() (*github.ReleaseBody, error)
- func GetReleaseTagFromVersion(version string) (releaseTag string)
- func GetUnisonVersion() string
- func Select(selection string)
- func SelfInstall(forceInstall bool)
- func Upgrade()
- type Info
- type Latest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAndInstall ¶
DownloadAndInstall - Download and install a selected tok version
func GetInstallPath ¶
GetInstallPath - Check if tok version is installed or not
func GetLatest ¶
func GetLatest() (*github.ReleaseBody, error)
GetLatest - Hit the GH API to retrieve the latest Tokaido version
func GetReleaseTagFromVersion ¶
GetReleaseTagFromVersion returns a githab-ready release tag from a Tokaido version string
func GetUnisonVersion ¶
func GetUnisonVersion() string
GetUnisonVersion retrieves the current version of Unison and returns it. If the current version isn't supported, we'll error right here.
func SelfInstall ¶
func SelfInstall(forceInstall bool)
SelfInstall - Check state then install runing Tokaido binary to PATH
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.