Commit 520c88ef authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

use shorthand for awall.util in awall-cli

parent b79700a6
......@@ -92,10 +92,11 @@ end
require 'awall.util'
util = awall.util
if not awall.util.contains({'translate', 'activate', 'fallback',
'enable', 'disable', 'list', 'dump'},
mode) then help() end
if not util.contains({'translate', 'activate', 'fallback',
'enable', 'disable', 'list', 'dump'},
mode) then help() end
require 'awall'
......@@ -103,11 +104,11 @@ require 'awall'
policyset = awall.PolicySet.new(params.i, params.I)
if mode == 'list' then
awall.util.printtabular(policyset:list())
util.printtabular(policyset:list())
os.exit()
end
if awall.util.contains({'disable', 'enable'}, mode) then
if util.contains({'disable', 'enable'}, mode) then
if opind > #arg then help() end
repeat
policyset[mode](policyset, arg[opind])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment