diff options
| author | ruki <[email protected]> | 2019-03-21 21:02:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-21 00:13:18 +0800 |
| commit | 858ac89b6ade76ea04701bbd6a610a9abe9a0638 (patch) | |
| tree | b41ca0dd6d7c254aeec995f97c591d87b05249d5 /xmake/actions/require/main.lua | |
| parent | 00bbf677845e44ff3def527d7c5e538e02d11d1e (diff) | |
improve to clean and scan packages
Diffstat (limited to 'xmake/actions/require/main.lua')
| -rw-r--r-- | xmake/actions/require/main.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmake/actions/require/main.lua b/xmake/actions/require/main.lua index 6311434cc..9ac5a4004 100644 --- a/xmake/actions/require/main.lua +++ b/xmake/actions/require/main.lua @@ -29,6 +29,7 @@ import("core.project.config") import("core.project.project") import("core.platform.platform") import("list") +import("scan") import("info") import("clean") import("search") @@ -76,7 +77,7 @@ function main() -- clean all installed packages cache if option.get("clean") then - clean(option.get("global")) + clean(option.get("requires")) -- search for the given packages from repositories elseif option.get("search") then @@ -93,11 +94,16 @@ function main() info(option.get("requires")) - -- list all package dependencies + -- list all package dependencies in project elseif option.get("list") then list() + -- scan the given or all packages + elseif option.get("scan") then + + scan(option.get("requires")) + -- install and update all outdated package dependencies by default if no arguments else install(option.get("requires")) |
