From 29c17eb085ce42c384527bc26caa0f9e8570b3df Mon Sep 17 00:00:00 2001 From: hornet Date: Tue, 21 Mar 2023 18:02:38 -0400 Subject: [PATCH] moved and fixed some naming, started CLI interface --- common/__init__.py | 0 {groundwork => common}/client.py | 0 {groundwork => common}/config.yaml | 0 {groundwork => common}/config_loader.py | 0 {groundwork => common}/log.py | 0 {groundwork => common}/srv.py | 0 main.py | 11 +++++++++++ sniff/udp.py | 2 ++ 8 files changed, 13 insertions(+) create mode 100644 common/__init__.py rename {groundwork => common}/client.py (100%) rename {groundwork => common}/config.yaml (100%) rename {groundwork => common}/config_loader.py (100%) rename {groundwork => common}/log.py (100%) rename {groundwork => common}/srv.py (100%) create mode 100644 main.py create mode 100644 sniff/udp.py diff --git a/common/__init__.py b/common/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/groundwork/client.py b/common/client.py similarity index 100% rename from groundwork/client.py rename to common/client.py diff --git a/groundwork/config.yaml b/common/config.yaml similarity index 100% rename from groundwork/config.yaml rename to common/config.yaml diff --git a/groundwork/config_loader.py b/common/config_loader.py similarity index 100% rename from groundwork/config_loader.py rename to common/config_loader.py diff --git a/groundwork/log.py b/common/log.py similarity index 100% rename from groundwork/log.py rename to common/log.py diff --git a/groundwork/srv.py b/common/srv.py similarity index 100% rename from groundwork/srv.py rename to common/srv.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..66be35b --- /dev/null +++ b/main.py @@ -0,0 +1,11 @@ + +class MenuState: + def __init__(self, title, desc, parent): + self.title = title + self.description = desc + self.parent = parent + self.subs = [] + + def add_submenu(self, menu): + self.subs.append(menu) + diff --git a/sniff/udp.py b/sniff/udp.py new file mode 100644 index 0000000..e21f79f --- /dev/null +++ b/sniff/udp.py @@ -0,0 +1,2 @@ +import socket +import os \ No newline at end of file