diff options
| author | ruki <[email protected]> | 2020-10-24 20:50:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-24 20:50:17 +0800 |
| commit | 3b47ed2bc4b9a9ee1a55f63a8b92b4a3ebde5b96 (patch) | |
| tree | 7c79f093fd66b2cb793b22757ada0f296dc1b26d | |
| parent | 062190053d98221e74a5a492a969f03499de8777 (diff) | |
remove menu arguments
| -rw-r--r-- | xmake/modules/private/xrepo/action/add-repo.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/export.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/fetch.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/info.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/list-repo.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/remove.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/rm-repo.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/search.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/update-repo.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/main.lua | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/xmake/modules/private/xrepo/action/add-repo.lua b/xmake/modules/private/xrepo/action/add-repo.lua index 6d67825af..1a5de7508 100644 --- a/xmake/modules/private/xrepo/action/add-repo.lua +++ b/xmake/modules/private/xrepo/action/add-repo.lua @@ -81,7 +81,7 @@ function _add_repository(name, url, branch) end -- main entry -function main(menu) +function main() local name = option.get("name") local url = option.get("url") if name and url then diff --git a/xmake/modules/private/xrepo/action/export.lua b/xmake/modules/private/xrepo/action/export.lua index c82d04488..5405b70e9 100644 --- a/xmake/modules/private/xrepo/action/export.lua +++ b/xmake/modules/private/xrepo/action/export.lua @@ -157,7 +157,7 @@ function _export_packages(packages) end -- main entry -function main(menu) +function main() local packages = option.get("packages") if packages then _export_packages(packages) diff --git a/xmake/modules/private/xrepo/action/fetch.lua b/xmake/modules/private/xrepo/action/fetch.lua index 464dfcb24..503c09e15 100644 --- a/xmake/modules/private/xrepo/action/fetch.lua +++ b/xmake/modules/private/xrepo/action/fetch.lua @@ -165,7 +165,7 @@ function _fetch_packages(packages) end -- main entry -function main(menu) +function main() local packages = option.get("packages") if packages then _fetch_packages(packages) diff --git a/xmake/modules/private/xrepo/action/info.lua b/xmake/modules/private/xrepo/action/info.lua index 35f00fd30..52333e14f 100644 --- a/xmake/modules/private/xrepo/action/info.lua +++ b/xmake/modules/private/xrepo/action/info.lua @@ -77,7 +77,7 @@ function _info_packages(packages) end -- main entry -function main(menu) +function main() local packages = option.get("packages") if packages then _info_packages(packages) diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua index 7934b2db5..0551fa3c9 100644 --- a/xmake/modules/private/xrepo/action/install.lua +++ b/xmake/modules/private/xrepo/action/install.lua @@ -169,7 +169,7 @@ function _install_packages(packages) end -- main entry -function main(menu) +function main() local packages = option.get("packages") if packages then _install_packages(packages) diff --git a/xmake/modules/private/xrepo/action/list-repo.lua b/xmake/modules/private/xrepo/action/list-repo.lua index ec9b908a0..27858be9c 100644 --- a/xmake/modules/private/xrepo/action/list-repo.lua +++ b/xmake/modules/private/xrepo/action/list-repo.lua @@ -71,6 +71,6 @@ function list_repository() end -- main entry -function main(menu) +function main() list_repository() end diff --git a/xmake/modules/private/xrepo/action/remove.lua b/xmake/modules/private/xrepo/action/remove.lua index 699b5fc59..29d562899 100644 --- a/xmake/modules/private/xrepo/action/remove.lua +++ b/xmake/modules/private/xrepo/action/remove.lua @@ -148,7 +148,7 @@ function _remove_packages(packages) end -- main entry -function main(menu) +function main() local packages = option.get("packages") if packages then _remove_packages(packages) diff --git a/xmake/modules/private/xrepo/action/rm-repo.lua b/xmake/modules/private/xrepo/action/rm-repo.lua index 2d2c2c779..bbb1c0ebb 100644 --- a/xmake/modules/private/xrepo/action/rm-repo.lua +++ b/xmake/modules/private/xrepo/action/rm-repo.lua @@ -100,7 +100,7 @@ function clear_repository() end -- main entry -function main(menu) +function main() local name = option.get("name") if name then remove_repository(name) diff --git a/xmake/modules/private/xrepo/action/search.lua b/xmake/modules/private/xrepo/action/search.lua index 06495642f..c19b6c9ed 100644 --- a/xmake/modules/private/xrepo/action/search.lua +++ b/xmake/modules/private/xrepo/action/search.lua @@ -78,7 +78,7 @@ function _search_packages(packages) end -- main entry -function main(menu) +function main() local packages = option.get("packages") if packages then _search_packages(packages) diff --git a/xmake/modules/private/xrepo/action/update-repo.lua b/xmake/modules/private/xrepo/action/update-repo.lua index 4fcb460db..073522535 100644 --- a/xmake/modules/private/xrepo/action/update-repo.lua +++ b/xmake/modules/private/xrepo/action/update-repo.lua @@ -71,6 +71,6 @@ function update_repository() end -- main entry -function main(menu) +function main() update_repository() end diff --git a/xmake/modules/private/xrepo/main.lua b/xmake/modules/private/xrepo/main.lua index 26938f285..e11f656f0 100644 --- a/xmake/modules/private/xrepo/main.lua +++ b/xmake/modules/private/xrepo/main.lua @@ -177,7 +177,7 @@ function main(...) -- do action if menu.action then - menu.action(menu) + menu.action() else menu.show_help() end |
