flyshell 1.2.2__tar.gz → 1.2.4__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.2.2/src/flyshell.egg-info → flyshell-1.2.4}/PKG-INFO +1 -1
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/abstract/base_plugin.py +1 -1
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/constants.py +4 -2
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/core/console.py +2 -1
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/core/directory.py +2 -0
- flyshell-1.2.4/src/flyshell/core/env.py +9 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/main.py +1 -0
- {flyshell-1.2.2 → flyshell-1.2.4/src/flyshell.egg-info}/PKG-INFO +1 -1
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell.egg-info/SOURCES.txt +1 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/LICENSE +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/README.md +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/pyproject.toml +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/setup.cfg +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/__init__.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/abstract/__init__.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/abstract/base_cmd.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/abstract/parent_cmd.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/builtin/__init__.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/builtin/diskops.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/builtin/fs.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/builtin/system.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/builtin/utils.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/core/__init__.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/core/auth.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/core/data.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell/core/loader.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell.egg-info/dependency_links.txt +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell.egg-info/entry_points.txt +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell.egg-info/requires.txt +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/src/flyshell.egg-info/top_level.txt +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_auth.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_data.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_directory.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_diskops.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_fs.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_loader.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_security.py +0 -0
- {flyshell-1.2.2 → flyshell-1.2.4}/tests/test_utils.py +0 -0
|
@@ -5,8 +5,8 @@ import os
|
|
|
5
5
|
import platform
|
|
6
6
|
import time
|
|
7
7
|
|
|
8
|
-
BUILD =
|
|
9
|
-
VERSION = "1.2.
|
|
8
|
+
BUILD = 129
|
|
9
|
+
VERSION = "1.2.4"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def _resolve_app_dir() -> Path:
|
|
@@ -28,6 +28,7 @@ SRC_DIR = PACKAGE_ROOT.parent
|
|
|
28
28
|
PROJECT_ROOT = SRC_DIR.parent
|
|
29
29
|
APP_DIR = _resolve_app_dir()
|
|
30
30
|
FILE_PATH = APP_DIR / "flyshell.db"
|
|
31
|
+
ENV_PATH = APP_DIR / "flyshell_keys.env"
|
|
31
32
|
USER_PLUGIN_DIR = APP_DIR / "plugins"
|
|
32
33
|
|
|
33
34
|
SESSION_START_TIME = time.time()
|
|
@@ -60,6 +61,7 @@ REQUIRED_COMPONENTS = [
|
|
|
60
61
|
"core/console.py",
|
|
61
62
|
"core/data.py",
|
|
62
63
|
"core/directory.py",
|
|
64
|
+
"core/env.py",
|
|
63
65
|
"core/loader.py",
|
|
64
66
|
]
|
|
65
67
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# src\flyshell\core\console.py
|
|
2
2
|
|
|
3
3
|
from flyshell import constants as c
|
|
4
|
-
from flyshell.core import data
|
|
4
|
+
from flyshell.core import data, env
|
|
5
5
|
from flyshell.core.directory import execute_line
|
|
6
6
|
|
|
7
7
|
import os
|
|
@@ -38,6 +38,7 @@ def load_history():
|
|
|
38
38
|
|
|
39
39
|
def boot():
|
|
40
40
|
load_history()
|
|
41
|
+
env.create_env()
|
|
41
42
|
print(c.CLEAR_SCREEN, end="")
|
|
42
43
|
print(f"\nBoot successful, welcome to Flyshell! (Version {c.VERSION})")
|
|
43
44
|
user_info = data.get_auth() or {}
|
|
@@ -176,6 +176,8 @@ def _execute_single(raw_cmd: str) -> int:
|
|
|
176
176
|
finally:
|
|
177
177
|
if hasattr(plugin, "on_unload"):
|
|
178
178
|
plugin.on_unload()
|
|
179
|
+
if hasattr(plugin, "save_storage"):
|
|
180
|
+
plugin.save_storage()
|
|
179
181
|
else:
|
|
180
182
|
print(
|
|
181
183
|
f"\nCommand Error: '{cmd_name}' is not a recognised command. Use 'cmds' for help.\n"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|