iteration
This commit is contained in:
parent
f63ab77fc1
commit
eb55a5d783
4
lns.lua
4
lns.lua
@ -63,7 +63,6 @@ function lns_lookup(remote_hostname)
|
||||
end
|
||||
|
||||
|
||||
load_cache()
|
||||
|
||||
local action = args[1]
|
||||
if action == nil then
|
||||
@ -72,6 +71,8 @@ if action == nil then
|
||||
end
|
||||
|
||||
if action == "lookup" then
|
||||
load_cache()
|
||||
|
||||
local hostname = args[2]
|
||||
if hostname == nil then
|
||||
io.write("Usage: lns lookup <hostname>\n")
|
||||
@ -92,5 +93,6 @@ if action == "lookup" then
|
||||
|
||||
elseif action == "clear" then
|
||||
cache = {}
|
||||
save_cache()
|
||||
print("Cleared cache!")
|
||||
end
|
Loading…
Reference in New Issue
Block a user