diff options
| author | ruki <[email protected]> | 2026-03-04 00:40:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-04 00:40:11 +0800 |
| commit | 078b2ee0b6087a70bae05d3fa86d01078786513c (patch) | |
| tree | 6f28e600fd9dcfb11bebb7abf02d36ebf1b7a685 /xmake/actions/create/template.lua | |
| parent | e0e20ef6ddbd0fc62fbaa00d195ce95f22a86fdf (diff) | |
move templates to repository
Diffstat (limited to 'xmake/actions/create/template.lua')
| -rw-r--r-- | xmake/actions/create/template.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xmake/actions/create/template.lua b/xmake/actions/create/template.lua index eb9e10b16..ea4c06b2f 100644 --- a/xmake/actions/create/template.lua +++ b/xmake/actions/create/template.lua @@ -33,9 +33,8 @@ end -- get all template roots with extra meta information -- -- priority: --- 1. repo: <global-repo>/templates +-- 1. repo: <global-repo>/templates (including builtin repo templates) -- 2. global: <globaldir>/templates --- 3. builtin: <programdir>/templates function rootinfos() local results = {} @@ -55,10 +54,6 @@ function rootinfos() if os.isdir(dir) then table.insert(results, {kind = "global", dir = dir}) end - dir = path.join(os.programdir(), "templates") - if os.isdir(dir) then - table.insert(results, {kind = "builtin", dir = dir}) - end return results end |
