feat: Add add-template command to register local template sources
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 40s
Build-Test-Publish / build (linux/arm64) (push) Successful in 2m45s

This commit is contained in:
j
2026-03-23 09:56:23 +13:00
parent 5217ad42d3
commit 63fdc2c0cb
4 changed files with 207 additions and 3 deletions

View File

@@ -169,7 +169,8 @@
}
// Check if this directory contains template_info.env
if (std::filesystem::exists(it->path() / filenames::template_info_env)) {
std::error_code ec;
if (std::filesystem::exists(it->path() / filenames::template_info_env, ec) && !ec) {
// Get relative path from root
std::string rel = std::filesystem::relative(it->path(), root).string();
result.push_back(rel);