search

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

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

func GetVersionsFromGitLocal(repo string) ([]version.Version, error)

GetVersionsFromGitLocal returns sorted versions list from specified local git repo.

func GetVersionsFromGitRemote

func GetVersionsFromGitRemote(repo string) ([]version.Version, error)

GetVersionsFromGitRemote returns sorted versions list from specified remote git repo.

func RunCommandAndGetOutputInDir

func RunCommandAndGetOutputInDir(program string, dir string, args ...string) (string, error)

RunCommandAndGetOutputInDir returns output of command.

func SearchVersions

func SearchVersions(cmdCtx *cmdcontext.CmdCtx, cliOpts *config.CliOpts, program string) error

SearchVersions outputs available versions of program.

func SearchVersionsLocal

func SearchVersionsLocal(cmdCtx *cmdcontext.CmdCtx, cliOpts *config.CliOpts, program string) error

SearchVersionsLocal outputs available versions of program from distfiles directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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