From 0e989f2c215ba7a13550442655dc57a22434519f Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 29 Sep 2017 00:42:27 +0800 Subject: show repo dir --- xmake/plugins/repo/main.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xmake/plugins/repo/main.lua b/xmake/plugins/repo/main.lua index e80bad1c2..9faa7ff42 100644 --- a/xmake/plugins/repo/main.lua +++ b/xmake/plugins/repo/main.lua @@ -178,6 +178,11 @@ function _list() print("%d repositories were found!", count) end +-- get the repository directory +function _directory(is_global) + print(repository.directory(is_global)) +end + -- load project function _load_project() @@ -224,9 +229,9 @@ function main() _list() - -- show help + -- show repo directory else - option.show_help() + _directory(option.get("global")) end end -- cgit v1.3.1