Documentation
¶
Index ¶
- Constants
- func GetVersionsFromGitLocal(repo string) ([]version.Version, error)
- func GetVersionsFromGitRemote(repo string) ([]version.Version, error)
- func RunCommandAndGetOutputInDir(program string, dir string, args ...string) (string, error)
- func SearchVersions(cmdCtx *cmdcontext.CmdCtx, program string) error
- func SearchVersionsLocal(cmdCtx *cmdcontext.CmdCtx, program string) error
Constants ¶
View Source
const ( GitRepoTarantool = "https://github.com/tarantool/tarantool.git" GitRepoTT = "https://github.com/tarantool/tt.git" )
View Source
const ( // VersionCliSeparator is used in commands to specify version. E.g: program=version. VersionCliSeparator = "=" // VersionFsSeparator is used in file names to specify version. E.g: program_version. VersionFsSeparator = "_" )
Variables ¶
This section is empty.
Functions ¶
func GetVersionsFromGitLocal ¶
GetVersionsFromGitLocal returns sorted versions list from specified local git repo.
func GetVersionsFromGitRemote ¶
GetVersionsFromGitRemote returns sorted versions list from specified remote git repo.
func RunCommandAndGetOutputInDir ¶
RunCommandAndGetOutputInDir returns output of command.
func SearchVersions ¶
func SearchVersions(cmdCtx *cmdcontext.CmdCtx, program string) error
SearchVersions outputs available versions of program.
func SearchVersionsLocal ¶
func SearchVersionsLocal(cmdCtx *cmdcontext.CmdCtx, program string) error
SearchVersionsLocal outputs available versions of program from distfiles directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.