diff options
| author | ruki <[email protected]> | 2018-10-11 22:54:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-10-11 11:28:34 +0800 |
| commit | 2b0891928e7c36256a95a90c37677ebdc7b5687d (patch) | |
| tree | 6f6da6443e5b5144af78b24f93b8ec66a4849331 /xmake/actions/require/main.lua | |
| parent | 02ba003928edb4bc2aae98ba1156013d996284cb (diff) | |
improve to install local package
Diffstat (limited to 'xmake/actions/require/main.lua')
| -rw-r--r-- | xmake/actions/require/main.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xmake/actions/require/main.lua b/xmake/actions/require/main.lua index 4bcf70162..2ef06b04a 100644 --- a/xmake/actions/require/main.lua +++ b/xmake/actions/require/main.lua @@ -32,8 +32,9 @@ import("list") import("info") import("clear") import("search") -import("remove") import("install") +import("uninstall") +import("unlink") -- -- the default repositories: @@ -83,10 +84,15 @@ function main() search(option.get("requires")) - -- remove for the installed packages - elseif option.get("remove") then + -- uninstall the installed packages + elseif option.get("uninstall") then - remove(option.get("requires")) + uninstall(option.get("requires")) + + -- unlink the installed packages + elseif option.get("unlink") then + + unlink(option.get("requires")) -- show the given package info elseif option.get("info") then |
