flyshell 1.1.6__tar.gz → 1.1.7__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.1.6/src/flyshell.egg-info → flyshell-1.1.7}/PKG-INFO +1 -1
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/abstract/base_cmd.py +2 -2
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/builtin/diskops.py +2 -2
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/constants.py +2 -2
- {flyshell-1.1.6 → flyshell-1.1.7/src/flyshell.egg-info}/PKG-INFO +1 -1
- {flyshell-1.1.6 → flyshell-1.1.7}/LICENSE +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/README.md +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/pyproject.toml +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/setup.cfg +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/__init__.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/abstract/__init__.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/abstract/base_plugin.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/abstract/parent_cmd.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/builtin/__init__.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/builtin/fs.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/builtin/system.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/builtin/utils.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/core/__init__.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/core/auth.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/core/console.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/core/data.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/core/directory.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/core/loader.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell/main.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell.egg-info/SOURCES.txt +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell.egg-info/dependency_links.txt +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell.egg-info/entry_points.txt +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell.egg-info/requires.txt +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/src/flyshell.egg-info/top_level.txt +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/tests/test_auth.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/tests/test_data.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/tests/test_directory.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/tests/test_loader.py +0 -0
- {flyshell-1.1.6 → flyshell-1.1.7}/tests/test_security.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# src\flyshell\abstract\base_cmd.py
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional, Tuple
|
|
3
|
+
from typing import List, Optional, Tuple
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class BaseCmd:
|
|
@@ -10,7 +10,7 @@ class BaseCmd:
|
|
|
10
10
|
options: Optional[str] = None
|
|
11
11
|
aliases: List[str] = []
|
|
12
12
|
|
|
13
|
-
def execute(self, args: List[str]) ->
|
|
13
|
+
def execute(self, args: List[str]) -> Tuple[int, str]:
|
|
14
14
|
raise NotImplementedError(
|
|
15
15
|
f"Command '{self.__class__.__name__}' has not implemented the execute method"
|
|
16
16
|
)
|
|
@@ -108,7 +108,7 @@ class Copy(BaseCmd):
|
|
|
108
108
|
.strip()
|
|
109
109
|
.lower()
|
|
110
110
|
)
|
|
111
|
-
except KeyboardInterrupt:
|
|
111
|
+
except (KeyboardInterrupt, EOFError):
|
|
112
112
|
return (1, "\nCopy cancelled by user.\n")
|
|
113
113
|
if confirm != "y":
|
|
114
114
|
return (0, "\nOperation cancelled. No files were copied.\n")
|
|
@@ -241,7 +241,7 @@ class Move(BaseCmd):
|
|
|
241
241
|
.strip()
|
|
242
242
|
.lower()
|
|
243
243
|
)
|
|
244
|
-
except KeyboardInterrupt:
|
|
244
|
+
except (KeyboardInterrupt, EOFError):
|
|
245
245
|
return (1, "\nMove cancelled by user.\n")
|
|
246
246
|
if confirm != "y":
|
|
247
247
|
return (0, "\nOperation cancelled. No files were moved.\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
|