Compare commits

...

6 Commits

Author SHA1 Message Date
daanselen 49095975a3 chore: disable workflow 2026-06-05 21:48:25 +02:00
DaanSelen 3c8fc54d76 chore: unbound error fix 2026-04-01 14:17:39 +02:00
DaanSelen c1d9f3751f chore: add robust os categories file check 2026-04-01 13:31:56 +02:00
DaanSelen 8ae6b728b5 chore: remove newline from writing history 2026-04-01 11:53:23 +02:00
DaanSelen 1006b965ed chore: change formatting 2026-03-30 14:54:20 +02:00
DaanSelen e710dadfcd chore: bump libmeshctrl 2026-02-19 09:01:01 +01:00
6 changed files with 10 additions and 8 deletions
+5 -2
View File
@@ -65,8 +65,6 @@ async def init_connection(credentials: dict) -> meshctrl.Session:
return session return session
async def main(): async def main():
local_categories_file = "./os_categories.json"
just_fix_windows_console() just_fix_windows_console()
''' '''
Main function where the program starts. Place from which all comands originate (eventually). Main function where the program starts. Place from which all comands originate (eventually).
@@ -81,6 +79,11 @@ async def main():
Console.text_color.reset + "MeshBook Version: " + Console.text_color.yellow + str(meshbook_version)) Console.text_color.reset + "MeshBook Version: " + Console.text_color.yellow + str(meshbook_version))
return return
if not args.oscategories:
local_categories_file = "./os_categories.json"
else:
local_categories_file = args.oscategories
if not args.meshbook: if not args.meshbook:
parser.print_help() parser.print_help()
return return
+2 -2
View File
@@ -20,7 +20,7 @@ class History():
except PermissionError: except PermissionError:
Console.print_text(silent, Console.text_color.red + f"Failed to create directory, permission error.") Console.print_text(silent, Console.text_color.red + f"Failed to create directory, permission error.")
return return
history_items = os.listdir(history_directory) history_items = os.listdir(history_directory)
if len(history_items) == 1: if len(history_items) == 1:
Console.print_text(silent, f"There is {len(history_items)} history item.") Console.print_text(silent, f"There is {len(history_items)} history item.")
@@ -45,4 +45,4 @@ class History():
stitched_file = f"{self.history_directory}/meshbook_run_{datetime.now().strftime('%Y_%m_%d_%H_%M_%S')}.log" stitched_file = f"{self.history_directory}/meshbook_run_{datetime.now().strftime('%Y_%m_%d_%H_%M_%S')}.log"
with open(stitched_file, "x") as f: with open(stitched_file, "x") as f:
f.write(history + "\n") f.write(history)
+1 -2
View File
@@ -1,4 +1,3 @@
{ {
"Linux": { "Linux": {
"Debian": [ "Debian": [
@@ -24,4 +23,4 @@
"Microsoft Windows 11 Pro - 24H2/26100" "Microsoft Windows 11 Pro - 24H2/26100"
] ]
} }
} }
+1 -1
View File
@@ -1,4 +1,4 @@
colorama==0.4.6 colorama==0.4.6
pyyaml==6.0.3 pyyaml==6.0.3
libmeshctrl==1.3.2 libmeshctrl==1.3.3
pyotp==2.9.0 pyotp==2.9.0
+1 -1
View File
@@ -2,4 +2,4 @@
hostname = hostname =
username = username =
password = password =
totp_secret = totp_secret =