RustImplementation #23

Merged
mysticmomba merged 118 commits from RustImplementation into master 2025-11-04 18:13:24 -05:00
3 changed files with 14 additions and 7 deletions
Showing only changes of commit c52767b3a3 - Show all commits
+2 -2
View File
@@ -31,13 +31,13 @@ import utils.menus as menus
from services.API import AirlockAPIWrapper
from services.security import getAPI
from utils.setup import get_base_directory, setup
from utils.utils import irtang
urllib3.disable_warnings(
urllib3.exceptions.InsecureRequestWarning
)
def main():
irtang()
#Determine working directory, setup directory, configure logging, sent env, get API and URL if not already stored
setup()
+2
View File
@@ -41,6 +41,7 @@ from utils.utils import (
locked,
open_directory,
printEnforceChecklist,
clear_screen
)
logger = logging.getLogger(__name__)
@@ -51,6 +52,7 @@ def menu_main(api: AirlockAPIWrapper):
working_dir = load_env("WORKING_DIR")
extras = load_env("EXTRAS")
while True:
clear_screen()
displayIntro()
# Add Settings, and give option to change working dir
print(colorText("1. ✅ - Move Device(s) to local approval", "yellow"))
+7 -2
View File
@@ -121,8 +121,7 @@ def regulator(paths, case_insensitive=True):
pattern = "(?i)" + pattern # Add inline case-insensitive flag
print(f"Regulator is providing: {pattern}")
return pattern
def displayIntro():
def irtang():
print(
colorText(
r"""
@@ -152,6 +151,8 @@ def displayIntro():
"yellow",
)
)
def displayIntro():
print(
colorText(
r"""
@@ -619,3 +620,7 @@ def print_x_wide(items: list, width: int):
for i in range(0, len(items), width):
row = items[i:i+width]
print(" | ".join(row))
def clear_screen():
os.system('cls' if os.name == 'nt' else 'clear')