rocks

package
v3.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

Jump to

Keyboard shortcuts

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