Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
awall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
awall
Commits
520c88ef
Commit
520c88ef
authored
Jun 28, 2012
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use shorthand for awall.util in awall-cli
parent
b79700a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
awall-cli
awall-cli
+6
-5
No files found.
awall-cli
View file @
520c88ef
...
...
@@ -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
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment