Workflow Trigger
This commit is contained in:
@@ -2,6 +2,8 @@ local elementManager = require("elementManager")
|
|||||||
local VisualElement = elementManager.getElement("VisualElement")
|
local VisualElement = elementManager.getElement("VisualElement")
|
||||||
local expect = require("libraries/expect")
|
local expect = require("libraries/expect")
|
||||||
local split = require("libraries/utils").split
|
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,
|
--- 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.
|
--- like Frames, BaseFrames, and more.
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
local VisualElement = require("elements/VisualElement")
|
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
|
--- This is the list class. It provides a scrollable list of selectable items with support for
|
||||||
--- custom item rendering, separators, and selection handling.
|
--- custom item rendering, separators, and selection handling.
|
||||||
|
|||||||
@@ -77,9 +77,15 @@ end
|
|||||||
local function scanDirectory(baseDir, relativePath)
|
local function scanDirectory(baseDir, relativePath)
|
||||||
local files = {}
|
local files = {}
|
||||||
|
|
||||||
-- Nutze io.popen um Verzeichnis zu scannen
|
-- Nutze direkt io.popen für das Directory Listing
|
||||||
local cmd = os.execute('dir "' .. baseDir .. '/' .. relativePath .. '" /b /s')
|
local cmd = 'dir "' .. baseDir .. '/' .. relativePath .. '" /b /s'
|
||||||
for path in io.popen(cmd):lines() do
|
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
|
if path:match("%.lua$") then
|
||||||
local config = parseFile(path)
|
local config = parseFile(path)
|
||||||
if config then
|
if config then
|
||||||
@@ -90,6 +96,7 @@ local function scanDirectory(baseDir, relativePath)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pipe:close()
|
||||||
return files
|
return files
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user