suricata/python
Shivani Bhardwaj bf37e3f5da suricatasc: Snug the processing of different commands
Since all of the commands were following the same procedure, namely,
split the input extract the arguments, throw the error if required
argument is missing else send the command over to suricata, put all of
this in one compact function alongwith a dictionary for specifications
for different commands, the name of the argument, the type and if it is
required or not.
Following fixups come with this commit:
- Code becomes really cozy
- Split errors on a few commands are well handled
- No redundant code
- More readability

References redmine ticket #2793
2019-02-15 10:56:58 +01:00
..
bin python: fixes for out of tree build 2018-05-23 14:47:57 +02:00
suricata suricatasc: Snug the processing of different commands 2019-02-15 10:56:58 +01:00
suricatasc suricatasc: move lib to suricata.sc 2018-03-28 08:49:41 +02:00
.gitignore python: fixes for out of tree build 2018-05-23 14:47:57 +02:00
Makefile.am suricatasc: move into python/ 2018-03-28 08:49:41 +02:00
setup.py python: fixes for out of tree build 2018-05-23 14:47:57 +02:00