Skip to content
Snippets Groups Projects
Commit d3b2bcb6 authored by Daniil Kotelnikov's avatar Daniil Kotelnikov Committed by Alexander Turenko
Browse files

rocks: add new useful commands

* Added a new command `test` that is new feature of luarocks 3.x.
* Added a new command `make_manifest` that is command from
  luarocks-admin.
* Added a new command `help` for getting help of internal luarocks
  commands.
parent 5a569d44
No related branches found
No related tags found
No related merge requests found
......@@ -964,6 +964,9 @@ local function rocks()
pack = "luarocks.cmd.pack",
unpack = "luarocks.cmd.unpack",
doc = "luarocks.cmd.doc",
help = "luarocks.cmd.help",
test = "luarocks.cmd.test",
make_manifest = "luarocks.admin.cmd.make_manifest",
}
if keyword_arguments.chdir then
......@@ -1185,7 +1188,7 @@ local commands = setmetatable({
}, rocks = {
func = exit_wrapper(rocks), process = process_remote, help = {
header =
"%s rocks [install|make|remove|show|search|list|pack|unpack|doc]",
"%s rocks [install|make|remove|show|search|list|pack|unpack|doc|test|make_manifest|help]",
description =
[=[
Package management.
......@@ -1263,6 +1266,15 @@ local commands = setmetatable({
header = "%s rocks unpack {<rock>|<name> [<version>]}",
description = [=[
Unpack the contents of a rock.
]=],
}
},
test = {
weight = 141,
help = {
header = "%s rocks test [<rockspec>]",
description = [=[
Run the test suite in the current directory.
]=],
}
},
......@@ -1272,6 +1284,17 @@ local commands = setmetatable({
header = "%s rocks doc <rockname>",
description = [=[
Show documentation for an installed rock.
]=],
}
},
make_manifest = {
weight = 161,
help = {
header = "%s rocks make_manifest <argument>",
description = [=[
Compile a manifest file for a repository.
<argument>, if given, is a local repository pathname.
]=],
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment