diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 19:39:06 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 19:39:17 -0300 |
commit | 74899796dd88f0b4ae903788453559cdd7a74f2a (patch) | |
tree | 0ed6e3bed8e24eb85ad033e0f016da5f744595e1 /src | |
parent | eddfa87fe331b97dc67f8778c6ebb58386cdf6f2 (diff) | |
download | luarocks-74899796dd88f0b4ae903788453559cdd7a74f2a.tar.gz luarocks-74899796dd88f0b4ae903788453559cdd7a74f2a.tar.bz2 luarocks-74899796dd88f0b4ae903788453559cdd7a74f2a.zip |
Nicer title message for `luarocks search`
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/cmd/search.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/cmd/search.lua b/src/luarocks/cmd/search.lua index c4e4058d..50471c6e 100644 --- a/src/luarocks/cmd/search.lua +++ b/src/luarocks/cmd/search.lua | |||
@@ -58,7 +58,8 @@ function cmd_search.command(flags, name, version) | |||
58 | query.exact_name = false | 58 | query.exact_name = false |
59 | local results, err = search.search_repos(query) | 59 | local results, err = search.search_repos(query) |
60 | local porcelain = flags["porcelain"] | 60 | local porcelain = flags["porcelain"] |
61 | util.title("Search results:", porcelain, "=") | 61 | local full_name = name .. (version and " " .. version or "") |
62 | util.title(full_name .. " - Search results for Lua "..cfg.lua_version..":", porcelain, "=") | ||
62 | local sources, binaries = split_source_and_binary_results(results) | 63 | local sources, binaries = split_source_and_binary_results(results) |
63 | if next(sources) and not flags["binary"] then | 64 | if next(sources) and not flags["binary"] then |
64 | util.title("Rockspecs and source rocks:", porcelain) | 65 | util.title("Rockspecs and source rocks:", porcelain) |