Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 49095975a3 | |||
| 3c8fc54d76 | |||
| c1d9f3751f | |||
| 8ae6b728b5 | |||
| 1006b965ed | |||
| e710dadfcd |
+5
-2
@@ -65,8 +65,6 @@ async def init_connection(credentials: dict) -> meshctrl.Session:
|
||||
return session
|
||||
|
||||
async def main():
|
||||
local_categories_file = "./os_categories.json"
|
||||
|
||||
just_fix_windows_console()
|
||||
'''
|
||||
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))
|
||||
return
|
||||
|
||||
if not args.oscategories:
|
||||
local_categories_file = "./os_categories.json"
|
||||
else:
|
||||
local_categories_file = args.oscategories
|
||||
|
||||
if not args.meshbook:
|
||||
parser.print_help()
|
||||
return
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ class History():
|
||||
except PermissionError:
|
||||
Console.print_text(silent, Console.text_color.red + f"Failed to create directory, permission error.")
|
||||
return
|
||||
|
||||
|
||||
history_items = os.listdir(history_directory)
|
||||
if len(history_items) == 1:
|
||||
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"
|
||||
|
||||
with open(stitched_file, "x") as f:
|
||||
f.write(history + "\n")
|
||||
f.write(history)
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
|
||||
{
|
||||
"Linux": {
|
||||
"Debian": [
|
||||
@@ -24,4 +23,4 @@
|
||||
"Microsoft Windows 11 Pro - 24H2/26100"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
colorama==0.4.6
|
||||
pyyaml==6.0.3
|
||||
libmeshctrl==1.3.2
|
||||
libmeshctrl==1.3.3
|
||||
pyotp==2.9.0
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
hostname =
|
||||
username =
|
||||
password =
|
||||
totp_secret =
|
||||
totp_secret =
|
||||
Reference in New Issue
Block a user