Turned 'menu' command into 'dashboard'

This commit is contained in:
Nathan Schneider
2021-04-11 22:24:47 -06:00
parent 8feae2d57e
commit 74ecba940a
3 changed files with 14 additions and 9 deletions
+9 -4
View File
@@ -4,15 +4,20 @@
-- Called by modpol.lua
-- ===================================================================
-- Function: modpol.menu(user)
-- Function: modpol.dashboard(user)
-- Params: user (string)
-- Q: Should this return a menu of commands relevant to the specific user?
-- Output: Displays a menu of commands to the user
-- TKTK currently just prints all of modpol---needs major improvement
modpol.menu = function(user)
local output = "Command list:\n"
modpol.dashboard = function(user)
local output = ""
-- Org status
output = output .. "Orgs:\n" .. modpol.list_orgs()
-- Process status (ongoing processes)
-- Command list (should be redone to be org-specific)
output = output .. "Command list:\n"
for key,value in pairs(modpol) do
output = output .. "- modpol." .. key .. "\n"
output = output .. "modpol." .. key .. " "
end
print(output)
end