Compare commits
10 Commits
00e63e1a96
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ba868d75b | |||
| 6da6482a5e | |||
| 42b7be5b17 | |||
| 49095975a3 | |||
| 9ddd6038f9 | |||
| 3c8fc54d76 | |||
| c1d9f3751f | |||
| 8ae6b728b5 | |||
| 1006b965ed | |||
| e710dadfcd |
+5
-2
@@ -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
@@ -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
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"Linux": {
|
"Linux": {
|
||||||
"Debian": [
|
"Debian": [
|
||||||
@@ -24,4 +23,4 @@
|
|||||||
"Microsoft Windows 11 Pro - 24H2/26100"
|
"Microsoft Windows 11 Pro - 24H2/26100"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"local>daanselen/renovate-config"
|
||||||
|
]
|
||||||
|
}
|
||||||
+2
-2
@@ -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.10.0
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
hostname =
|
hostname =
|
||||||
username =
|
username =
|
||||||
password =
|
password =
|
||||||
totp_secret =
|
totp_secret =
|
||||||
Reference in New Issue
Block a user