changeset 66:331b5e176d79

Convenience command to build and populate a brand new list
author John@Doomsday
date Tue, 27 Mar 2012 10:18:55 -0400
parents d3f64d7246b3
children 8387dc2ff658
files Core.lua
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Mon Mar 26 23:47:24 2012 -0400
+++ b/Core.lua	Tue Mar 27 10:18:55 2012 -0400
@@ -52,7 +52,7 @@
 
 function OnEnable()
     CreateWorkingStateFromChanges(db.profile.changes)
-    CreateGUI()
+    --CreateGUI()
 end
 
 function HandleCommand(paramIn)
@@ -171,6 +171,14 @@
             return
         end
         RenameList(arg1,arg2)
+    elseif action == "generate" then
+        if not arg1 then
+            PrintTable(param)
+            return
+        end
+        PersonList:AddMissing()
+        CreateList(arg1)
+        PopulateListRandom(arg1)
     else
         CreateGUI()
     end