flyshell 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flyshell-1.0.2/src/flyshell.egg-info → flyshell-1.0.3}/PKG-INFO +1 -1
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/abstract/parent_cmd.py +1 -1
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/constants.py +2 -2
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/core/auth.py +2 -3
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/core/loader.py +1 -3
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/main.py +5 -6
- {flyshell-1.0.2 → flyshell-1.0.3/src/flyshell.egg-info}/PKG-INFO +1 -1
- {flyshell-1.0.2 → flyshell-1.0.3}/LICENSE +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/README.md +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/pyproject.toml +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/setup.cfg +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/__init__.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/abstract/__init__.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/abstract/base_cmd.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/abstract/base_plugin.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/builtin/__init__.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/builtin/fs.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/builtin/system.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/builtin/utils.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/core/__init__.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/core/console.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/core/data.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell/core/directory.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell.egg-info/SOURCES.txt +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell.egg-info/dependency_links.txt +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell.egg-info/entry_points.txt +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell.egg-info/requires.txt +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/src/flyshell.egg-info/top_level.txt +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/tests/test_auth.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/tests/test_data.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/tests/test_directory.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/tests/test_loader.py +0 -0
- {flyshell-1.0.2 → flyshell-1.0.3}/tests/test_security.py +0 -0
|
@@ -73,7 +73,6 @@ def setup_acc() -> bool:
|
|
|
73
73
|
print(f"You have {i} attempts remaining.\n")
|
|
74
74
|
continue
|
|
75
75
|
pwd_hash, salt = hash_password(password)
|
|
76
|
-
auth_data = {"username": username, "hash": pwd_hash, "salt": salt}
|
|
77
76
|
data.set_auth(username, pwd_hash, salt)
|
|
78
77
|
print("\nSUCCESS: Account created successfully!")
|
|
79
78
|
return True
|
|
@@ -89,7 +88,7 @@ def login_flow(is_lock=False) -> bool:
|
|
|
89
88
|
stored_hash = auth_info.get("hash")
|
|
90
89
|
stored_salt = auth_info.get("salt")
|
|
91
90
|
if is_lock:
|
|
92
|
-
input(
|
|
91
|
+
input("\nFlyshell is locked. To unlock, press ENTER.")
|
|
93
92
|
print(f"\nWelcome back, {stored_user}!")
|
|
94
93
|
else:
|
|
95
94
|
print(f"\nWelcome, {stored_user}!")
|
|
@@ -101,7 +100,7 @@ def login_flow(is_lock=False) -> bool:
|
|
|
101
100
|
print()
|
|
102
101
|
return True
|
|
103
102
|
i -= 1
|
|
104
|
-
print(
|
|
103
|
+
print("\nAccount Error: Password does not match.")
|
|
105
104
|
if i == 0:
|
|
106
105
|
print("Too many attempts.\n")
|
|
107
106
|
return False
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
from flyshell import constants as c
|
|
4
4
|
from flyshell.abstract.base_plugin import BasePlugin
|
|
5
5
|
from flyshell.core import data
|
|
6
|
-
from flyshell.core.directory import COMMAND_REGISTRY
|
|
7
6
|
|
|
8
7
|
from pathlib import Path
|
|
9
8
|
import importlib.util
|
|
10
9
|
import inspect
|
|
11
|
-
import os
|
|
12
10
|
import sys
|
|
13
11
|
|
|
14
12
|
|
|
@@ -64,7 +62,7 @@ def scan_plugins(plugin_folder=None):
|
|
|
64
62
|
f"\n⚠️ Collision Error - Multiple plugins named '{name}' detected: {paths}"
|
|
65
63
|
)
|
|
66
64
|
print(
|
|
67
|
-
|
|
65
|
+
"The above plugins will not be loaded. Please rename them to unique names."
|
|
68
66
|
)
|
|
69
67
|
failed = True
|
|
70
68
|
if failed:
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from flyshell import constants as c
|
|
4
4
|
|
|
5
5
|
from pathlib import Path
|
|
6
|
+
import importlib.util
|
|
6
7
|
import os
|
|
7
8
|
import sys
|
|
8
9
|
|
|
@@ -35,12 +36,10 @@ def boot_check():
|
|
|
35
36
|
)
|
|
36
37
|
for path in tests_dir.glob("test_*.py"):
|
|
37
38
|
print(f"✅ {path.name} - Test found")
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
print(
|
|
42
|
-
except ImportError:
|
|
43
|
-
print(f"⚠️ Your tests cannot be run as Pytest is not installed.")
|
|
39
|
+
if importlib.util.find_spec("pytest") is not None:
|
|
40
|
+
print("✅ Your tests can be run using Pytest.")
|
|
41
|
+
else:
|
|
42
|
+
print("⚠️ Your tests cannot be run as Pytest is not installed.")
|
|
44
43
|
print(
|
|
45
44
|
"\nFlyshell will now check external additional packages and features. These are not required."
|
|
46
45
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|