diff options
| author | ruki <[email protected]> | 2025-03-07 23:48:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-03-07 23:48:27 +0800 |
| commit | bf9da443b2f516ec3ac0ddfdecbf647567546309 (patch) | |
| tree | b07ec833849baee7ad37089f44602227232eae12 /xmake/modules | |
| parent | 71eb08513b959fc2352017b57cb413f9e0400dce (diff) | |
update the given repo
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/xrepo/action/update-repo.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake/modules/private/xrepo/action/update-repo.lua b/xmake/modules/private/xrepo/action/update-repo.lua index 8746a91be..779b7b2e0 100644 --- a/xmake/modules/private/xrepo/action/update-repo.lua +++ b/xmake/modules/private/xrepo/action/update-repo.lua @@ -25,10 +25,13 @@ import("core.base.option") function menu_options() -- description - local description = "Update all local repositories from remote." + local description = "Update the local repositories from remote." -- menu options - local options = {} + local options = + { + {nil, "name", "v", nil, "The repository name."} + } -- show menu options local function show_options() @@ -67,10 +70,13 @@ function update_repository() if option.get("diagnosis") then table.insert(repo_argv, "-D") end + local name = option.get("name") + if name then + table.insert(repo_argv, name) + end os.vexecv(os.programfile(), repo_argv) end --- main entry function main() update_repository() end |
