29 lines
577 B
Lua
Executable File
29 lines
577 B
Lua
Executable File
#!/usr/bin/env lua
|
|
|
|
if not arg[1] then print("no argument, try again") return end
|
|
|
|
require "R2H2"
|
|
require "color"
|
|
|
|
adjustTableSizes = require "output_sizes"
|
|
printOutputTable = require "output_word"
|
|
|
|
showList = require "show_list"
|
|
searchList = require "search_list"
|
|
|
|
words = dofile("words.lua")
|
|
|
|
if arg[1] == "all" then
|
|
showList()
|
|
return
|
|
end
|
|
if arg[1] == "search" then
|
|
if arg[2] then searchList(arg[2])
|
|
else print("insert query") end
|
|
return
|
|
end
|
|
if arg[1] == "transcript" then
|
|
if arg[2] then print(convertToHeonian(arg[2]))
|
|
else print("no string found") end
|
|
return
|
|
end |