Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EmbedCompletions embed.FS
Functions ¶
func Exec ¶
func Exec(cmdCtx *cmdcontext.CmdCtx, servers, args []string) error
Exec runs a LuaRocks command through the embedded LuaRocks engine (go-luarocks). All args are passed verbatim to the upstream LuaRocks CLI dispatcher, which parses them and prints its own output. This is the transitional `tt rocks` escape-hatch; the new manifest commands go through cli/manifest/rocks instead.
servers replace the rock servers LuaRocks queries by default, as the server list of tt registry replaces its defaults; an empty one leaves the defaults of LuaRocks in place. The repository TT_CLI_REPO_ROCKS names is added on top of them with --server, which LuaRocks queries first.
func GetTarantoolPrefix ¶
func GetTarantoolPrefix(cli *cmdcontext.CliCtx) (string, error)
GetTarantoolPrefix returns tarantool installation prefix: the directory tt binary installed the tarantool of cli under, which holds its headers in include/tarantool, else TT_CLI_TARANTOOL_PREFIX, else the install prefix the tarantool was built with.
Types ¶
This section is empty.