summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-09-29 00:42:27 +0800
committerruki <[email protected]>2017-09-28 22:14:45 +0800
commit0e989f2c215ba7a13550442655dc57a22434519f (patch)
tree7cd96d32ae1acc244ec07eafd7d85af0ad7710cf
parentb0c6c6c058dfe7fe21f42da4da8c8f03fbdb8951 (diff)
show repo dir
-rw-r--r--xmake/plugins/repo/main.lua9
1 files 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