flyshell 1.0.4__tar.gz → 1.0.6__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.
Files changed (33) hide show
  1. {flyshell-1.0.4/src/flyshell.egg-info → flyshell-1.0.6}/PKG-INFO +1 -1
  2. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/builtin/fs.py +2 -3
  3. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/constants.py +2 -2
  4. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/core/data.py +9 -0
  5. {flyshell-1.0.4 → flyshell-1.0.6/src/flyshell.egg-info}/PKG-INFO +1 -1
  6. {flyshell-1.0.4 → flyshell-1.0.6}/LICENSE +0 -0
  7. {flyshell-1.0.4 → flyshell-1.0.6}/README.md +0 -0
  8. {flyshell-1.0.4 → flyshell-1.0.6}/pyproject.toml +0 -0
  9. {flyshell-1.0.4 → flyshell-1.0.6}/setup.cfg +0 -0
  10. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/__init__.py +0 -0
  11. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/abstract/__init__.py +0 -0
  12. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/abstract/base_cmd.py +0 -0
  13. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/abstract/base_plugin.py +0 -0
  14. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/abstract/parent_cmd.py +0 -0
  15. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/builtin/__init__.py +0 -0
  16. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/builtin/system.py +0 -0
  17. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/builtin/utils.py +0 -0
  18. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/core/__init__.py +0 -0
  19. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/core/auth.py +0 -0
  20. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/core/console.py +0 -0
  21. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/core/directory.py +0 -0
  22. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/core/loader.py +0 -0
  23. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell/main.py +0 -0
  24. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell.egg-info/SOURCES.txt +0 -0
  25. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell.egg-info/dependency_links.txt +0 -0
  26. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell.egg-info/entry_points.txt +0 -0
  27. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell.egg-info/requires.txt +0 -0
  28. {flyshell-1.0.4 → flyshell-1.0.6}/src/flyshell.egg-info/top_level.txt +0 -0
  29. {flyshell-1.0.4 → flyshell-1.0.6}/tests/test_auth.py +0 -0
  30. {flyshell-1.0.4 → flyshell-1.0.6}/tests/test_data.py +0 -0
  31. {flyshell-1.0.4 → flyshell-1.0.6}/tests/test_directory.py +0 -0
  32. {flyshell-1.0.4 → flyshell-1.0.6}/tests/test_loader.py +0 -0
  33. {flyshell-1.0.4 → flyshell-1.0.6}/tests/test_security.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -79,8 +79,7 @@ class FsDel(BaseCmd):
79
79
  )
80
80
  if choice == "y":
81
81
  data.clear_history()
82
- for name in list(data.PLUGINS.keys()):
83
- data.purge_plugin(name)
82
+ data.purge_all_plugin_data()
84
83
  return (0, "\nAll non-auth system data purged successfully.\n")
85
84
  return (1, "\nAction cancelled.\n")
86
85
  case _:
@@ -139,7 +138,7 @@ class FsPlugins(BaseCmd):
139
138
 
140
139
  def execute(self, args):
141
140
  lines = ["\nInstalled Plugins:"]
142
- if data.PLUGINS:
141
+ if c.PLUGINS:
143
142
  for name, plugin in c.PLUGINS.items():
144
143
  p_name = getattr(plugin, "name", name)
145
144
  p_desc = getattr(plugin, "description", "No description provided.")
@@ -7,8 +7,8 @@ import os
7
7
  import platform
8
8
  import time
9
9
 
10
- BUILD = 103
11
- VERSION = "1.0.4"
10
+ BUILD = 105
11
+ VERSION = "1.0.6"
12
12
 
13
13
 
14
14
  def _resolve_app_dir() -> Path:
@@ -253,3 +253,12 @@ def purge_plugin(plugin_name: str, filename=c.FILE_PATH) -> bool:
253
253
  "DELETE FROM plugins WHERE plugin_name = ?", (plugin_name,)
254
254
  )
255
255
  return cursor.rowcount > 0
256
+
257
+
258
+ def purge_all_plugin_data(filename=c.FILE_PATH) -> bool:
259
+ initialise(filename)
260
+ with _get_connection(filename) as conn:
261
+ with conn:
262
+ conn.execute("DELETE FROM plugin_kv")
263
+ conn.execute("DELETE FROM plugins")
264
+ return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes