Workflow Trigger

This commit is contained in:
Robert Jelic
2025-02-21 18:41:58 +01:00
parent d253876702
commit 792832c61d
3 changed files with 14 additions and 3 deletions

View File

@@ -2,6 +2,8 @@ local elementManager = require("elementManager")
local VisualElement = elementManager.getElement("VisualElement")
local expect = require("libraries/expect")
local split = require("libraries/utils").split
---@configDescription The container class. It is a visual element that can contain other elements. It is the base class for all containers
---@configDefault true
--- The container class. It is a visual element that can contain other elements. It is the base class for all containers,
--- like Frames, BaseFrames, and more.

View File

@@ -1,4 +1,6 @@
local VisualElement = require("elements/VisualElement")
---@configDescription A scrollable list of selectable items
---@configDefault true
--- This is the list class. It provides a scrollable list of selectable items with support for
--- custom item rendering, separators, and selection handling.

View File

@@ -77,9 +77,15 @@ end
local function scanDirectory(baseDir, relativePath)
local files = {}
-- Nutze io.popen um Verzeichnis zu scannen
local cmd = os.execute('dir "' .. baseDir .. '/' .. relativePath .. '" /b /s')
for path in io.popen(cmd):lines() do
-- Nutze direkt io.popen für das Directory Listing
local cmd = 'dir "' .. baseDir .. '/' .. relativePath .. '" /b /s'
local pipe = io.popen(cmd)
if not pipe then
error("Failed to execute directory scan command")
return files
end
for path in pipe:lines() do
if path:match("%.lua$") then
local config = parseFile(path)
if config then
@@ -90,6 +96,7 @@ local function scanDirectory(baseDir, relativePath)
end
end
pipe:close()
return files
end