mirror of
https://github.com/TangentFoxy/.lua-files.git
synced 2024-11-20 21:34:23 +00:00
19 lines
587 B
Lua
19 lines
587 B
Lua
#!/usr/bin/env luajit
|
|
|
|
-- if utility-functions.lua has an error, this won't show it, so for testing purposes, I don't use it here
|
|
-- local error_occurred, utility = pcall(function() return require("utility-functions") end) if not error_occurred then error("This script is installed improperly. Follow instructions at https://github.com/TangentFoxy/.lua-files#installation") end
|
|
utility = require("utility-functions")
|
|
|
|
print("---")
|
|
|
|
-- local ls = utility.ls()
|
|
-- ls(function(file_name)
|
|
-- print(file_name)
|
|
-- end)
|
|
|
|
utility.ls()(function(file_name)
|
|
print(file_name)
|
|
end)
|
|
|
|
print("---")
|