package
0.0.0-20240507095836-7f7efcfd4aaf
Repository: https://github.com/tarantool/cartridge-cli.git
Documentation: pkg.go.dev

# Functions

CheckRecommendedBinaries warns if some binaries not found in PATH.
CheckRequiredBinaries returns an error if some binaries not found in PATH.
CheckTarantoolBinaries returns an error if tarantool or tarantoolctl is not found in PATH.
ClearDir removes all files from specified directory.
CompressGzip compresses specified file with gzip.BestCompression level.
ConcatBuffers appends sources content to dest.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FileLinesScanner returns scanner for file.
FileMD5 computes MD5 for a given file.
FileMD5Hex computes MD5 for a given file.
FileSHA1Hex computes SHA1 for a given file.
FileSHA256Hex computes SHA256 for a given file.
FindRockspec finds *.rockspec file in specified path.
No description provided by the author
No description provided by the author
GetCurrentUserID returns current user UID.
No description provided by the author
No description provided by the author
GetFileContent returns file content as a string.
GetFileContent returns file content as a bytes slice.
GetHomeDir returns current home directory.
No description provided by the author
No description provided by the author
No description provided by the author
GetLastNLinesBegin return the position of last lines begin.
No description provided by the author
GetMajorMinorVersion computes returns `<major>.<minor>` string for a given version.
No description provided by the author
GetMinimalRequiredVersion computes minimal required Tarantool version for a package (rpm, deb).
GetMissedBinaries returns list of binaries not found in PATH.
GetNextMajorVersion computes next Major version for a given one.
GetOutput runs specified command and returns it's stdout.
No description provided by the author
GetTarantoolDir returns Tarantool executable directory.
GetTarantoolVersion gets Tarantool version from the environment.
GetTarantoolVersionFromFile gets Tarantool version from config file.
No description provided by the author
GitIsInstalled checks if git binary is in the PATH.
HasPerm checks if specified file has permissions.
No description provided by the author
IntsToStrings converts int slice to strings slice.
IsExecOwner checks if specified file has owner execute permissions.
IsGitProject checks if specified path is a git project.
IsSocket checks if specified file is a socket.
IsSubDir checks if directory is subdirectory of other.
LuaGetRocksVersions gets map which contains {name: versions} from rocks manifest.
LuaReadStringVar reads global string variable from specified Lua file.
MergeFiles creates a file that is a concatenation of srcFilePaths.
OnlyOneIsTrue checks if one and only one of boolean values is true.
OptFrom initializes Optional struct with provided value.
OptFrom returns Optional value and "is set" flag.
No description provided by the author
ParseShortTarantoolVersion parse Tarantool version provided by user.
ParseTarantoolVersion extracts Tarantool version string to a TarantoolVersion struct.
ParseYmlFile reads YAML file and returns it's content as a map.
No description provided by the author
Prompt a value with given text and default value.
RandomString generates random string length n.
No description provided by the author
No description provided by the author
RunCommand runs specified command and returns an error If showOutput is set to true, command output is shown Else spinner is shown while command is running.
RunFunctionWithSpinner executes function and starts a spinner with specified prefix in a background until function returns.
RunHook runs specified hook and returns an error If showOutput is set to true, command output is shown.
No description provided by the author
StartCommandSpinner starts running spinner until `ready` flag is received from the channel.
No description provided by the author
StringSHA1Hex computes SHA1 for a given string The result is returned in a hex form.
No description provided by the author
No description provided by the author
TarantoolIsEnterprise checks if Tarantool is Enterprise.
TrimSince trims a string starts with a given substring.
WriteTarArchive creates Tar archive of specified path using specified writer.
WriteTgzArchive creates TGZ archive of specified path.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
OptionalUint64 is optional value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author