flyshell 1.3.2__tar.gz → 1.3.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.3.2/src/flyshell.egg-info → flyshell-1.3.4}/PKG-INFO +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/__init__.py +2 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/abstract/base_cmd.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/abstract/base_plugin.py +2 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/abstract/parent_cmd.py +1 -1
- {flyshell-1.3.2/src/flyshell/core → flyshell-1.3.4/src/flyshell/accounts}/auth.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/builtin/diskops.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/builtin/fs.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/builtin/pkg.py +3 -3
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/builtin/system.py +3 -2
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/builtin/utils.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/constants.py +10 -7
- flyshell-1.3.4/src/flyshell/core/__init__.py +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/core/console.py +3 -2
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/core/data.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/core/directory.py +4 -2
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/main.py +4 -2
- flyshell-1.3.4/src/flyshell/startup/__init__.py +0 -0
- {flyshell-1.3.2/src/flyshell/core → flyshell-1.3.4/src/flyshell/startup}/deps.py +1 -1
- {flyshell-1.3.2/src/flyshell/core → flyshell-1.3.4/src/flyshell/startup}/env.py +1 -1
- {flyshell-1.3.2/src/flyshell/core → flyshell-1.3.4/src/flyshell/startup}/loader.py +3 -2
- {flyshell-1.3.2 → flyshell-1.3.4/src/flyshell.egg-info}/PKG-INFO +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell.egg-info/SOURCES.txt +7 -5
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_auth.py +2 -2
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_data.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_deps.py +2 -2
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_directory.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_diskops.py +1 -1
- flyshell-1.3.2/tests/test_env_keys.py → flyshell-1.3.4/tests/test_env.py +3 -5
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_fs.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_loader.py +2 -2
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_pkg.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_security.py +2 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/tests/test_utils.py +1 -1
- {flyshell-1.3.2 → flyshell-1.3.4}/LICENSE +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/README.md +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/pyproject.toml +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/setup.cfg +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell/abstract/__init__.py +0 -0
- {flyshell-1.3.2/src/flyshell/builtin → flyshell-1.3.4/src/flyshell/accounts}/__init__.py +0 -0
- {flyshell-1.3.2/src/flyshell/core → flyshell-1.3.4/src/flyshell/builtin}/__init__.py +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell.egg-info/dependency_links.txt +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell.egg-info/entry_points.txt +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell.egg-info/requires.txt +0 -0
- {flyshell-1.3.2 → flyshell-1.3.4}/src/flyshell.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# src
|
|
1
|
+
# src/flyshell/builtin/pkg.py
|
|
2
2
|
|
|
3
3
|
from typing import List, Tuple
|
|
4
4
|
from flyshell.abstract.base_cmd import BaseCmd
|
|
5
5
|
from flyshell.abstract.parent_cmd import ParentCmd
|
|
6
|
-
from flyshell.
|
|
6
|
+
from flyshell.startup import env
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class PkgApi(BaseCmd):
|
|
@@ -32,7 +32,7 @@ class PkgApi(BaseCmd):
|
|
|
32
32
|
if len(remaining_args) < 2:
|
|
33
33
|
return (
|
|
34
34
|
1,
|
|
35
|
-
"\nCommand Error:
|
|
35
|
+
"\nCommand Error: Define a package name and a key name for deletion.\n",
|
|
36
36
|
)
|
|
37
37
|
plugin_name = remaining_args[0]
|
|
38
38
|
key_name = remaining_args[1]
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
# src
|
|
1
|
+
# src/flyshell/builtin/system.py
|
|
2
2
|
|
|
3
3
|
from flyshell import constants as c
|
|
4
4
|
from flyshell.abstract.base_cmd import BaseCmd
|
|
5
|
-
from flyshell.
|
|
5
|
+
from flyshell.accounts import auth
|
|
6
|
+
from flyshell.core import data
|
|
6
7
|
|
|
7
8
|
import getpass
|
|
8
9
|
import os
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# src
|
|
1
|
+
# src/flyshell/constants.py
|
|
2
2
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
import os
|
|
5
5
|
import platform
|
|
6
6
|
import time
|
|
7
7
|
|
|
8
|
-
BUILD =
|
|
9
|
-
VERSION = "1.3.
|
|
8
|
+
BUILD = 144
|
|
9
|
+
VERSION = "1.3.4"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def _resolve_app_dir() -> Path:
|
|
@@ -50,6 +50,8 @@ REQUIRED_COMPONENTS = [
|
|
|
50
50
|
"abstract/base_cmd.py",
|
|
51
51
|
"abstract/base_plugin.py",
|
|
52
52
|
"abstract/parent_cmd.py",
|
|
53
|
+
"accounts",
|
|
54
|
+
"accounts/auth.py",
|
|
53
55
|
"builtin",
|
|
54
56
|
"builtin/diskops.py",
|
|
55
57
|
"builtin/fs.py",
|
|
@@ -58,13 +60,14 @@ REQUIRED_COMPONENTS = [
|
|
|
58
60
|
"builtin/utils.py",
|
|
59
61
|
"constants.py",
|
|
60
62
|
"core",
|
|
61
|
-
"core/auth.py",
|
|
62
63
|
"core/console.py",
|
|
63
64
|
"core/data.py",
|
|
64
|
-
"core/deps.py",
|
|
65
65
|
"core/directory.py",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
"main.py",
|
|
67
|
+
"startup",
|
|
68
|
+
"startup/deps.py",
|
|
69
|
+
"startup/env.py",
|
|
70
|
+
"startup/loader.py",
|
|
68
71
|
]
|
|
69
72
|
|
|
70
73
|
GREETINGS = [
|
|
File without changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
# src
|
|
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
|
|
5
5
|
from flyshell.core.directory import execute_line
|
|
6
|
+
from flyshell.startup import env
|
|
6
7
|
|
|
7
8
|
import os
|
|
8
9
|
import random
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
# src
|
|
1
|
+
# src/flyshell/core/directory.py
|
|
2
2
|
|
|
3
3
|
from flyshell import constants as c
|
|
4
4
|
from flyshell.abstract.base_cmd import BaseCmd
|
|
5
5
|
from flyshell.abstract.parent_cmd import ParentCmd
|
|
6
|
+
from flyshell.accounts import auth
|
|
6
7
|
from flyshell.builtin import diskops, fs, pkg, system, utils
|
|
7
|
-
from flyshell.core import
|
|
8
|
+
from flyshell.core import data
|
|
9
|
+
from flyshell.startup import deps
|
|
8
10
|
|
|
9
11
|
from datetime import datetime, timezone
|
|
10
12
|
import shlex
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# src
|
|
1
|
+
# src/flyshell/main.py
|
|
2
2
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
import importlib.util
|
|
@@ -68,7 +68,9 @@ def main():
|
|
|
68
68
|
try:
|
|
69
69
|
if boot_check():
|
|
70
70
|
from flyshell import constants as c
|
|
71
|
-
from flyshell.
|
|
71
|
+
from flyshell.accounts import auth
|
|
72
|
+
from flyshell.core import console
|
|
73
|
+
from flyshell.startup import loader
|
|
72
74
|
|
|
73
75
|
if c.HOST_OS in ["Windows", "Darwin", "Linux"]:
|
|
74
76
|
if sys.version_info < c.SUPPORTED_PYTHON:
|
|
File without changes
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
# src
|
|
1
|
+
# src/flyshell/startup/loader.py
|
|
2
2
|
|
|
3
3
|
from flyshell import constants as c
|
|
4
4
|
from flyshell.abstract.base_plugin import BasePlugin
|
|
5
|
-
from flyshell.core import data
|
|
5
|
+
from flyshell.core import data
|
|
6
6
|
from flyshell.core.directory import RESERVED_NAMES
|
|
7
|
+
from flyshell.startup import deps, env
|
|
7
8
|
|
|
8
9
|
from typing import Dict, List
|
|
9
10
|
from pathlib import Path
|
|
@@ -14,6 +14,8 @@ src/flyshell/abstract/__init__.py
|
|
|
14
14
|
src/flyshell/abstract/base_cmd.py
|
|
15
15
|
src/flyshell/abstract/base_plugin.py
|
|
16
16
|
src/flyshell/abstract/parent_cmd.py
|
|
17
|
+
src/flyshell/accounts/__init__.py
|
|
18
|
+
src/flyshell/accounts/auth.py
|
|
17
19
|
src/flyshell/builtin/__init__.py
|
|
18
20
|
src/flyshell/builtin/diskops.py
|
|
19
21
|
src/flyshell/builtin/fs.py
|
|
@@ -21,19 +23,19 @@ src/flyshell/builtin/pkg.py
|
|
|
21
23
|
src/flyshell/builtin/system.py
|
|
22
24
|
src/flyshell/builtin/utils.py
|
|
23
25
|
src/flyshell/core/__init__.py
|
|
24
|
-
src/flyshell/core/auth.py
|
|
25
26
|
src/flyshell/core/console.py
|
|
26
27
|
src/flyshell/core/data.py
|
|
27
|
-
src/flyshell/core/deps.py
|
|
28
28
|
src/flyshell/core/directory.py
|
|
29
|
-
src/flyshell/
|
|
30
|
-
src/flyshell/
|
|
29
|
+
src/flyshell/startup/__init__.py
|
|
30
|
+
src/flyshell/startup/deps.py
|
|
31
|
+
src/flyshell/startup/env.py
|
|
32
|
+
src/flyshell/startup/loader.py
|
|
31
33
|
tests/test_auth.py
|
|
32
34
|
tests/test_data.py
|
|
33
35
|
tests/test_deps.py
|
|
34
36
|
tests/test_directory.py
|
|
35
37
|
tests/test_diskops.py
|
|
36
|
-
tests/
|
|
38
|
+
tests/test_env.py
|
|
37
39
|
tests/test_fs.py
|
|
38
40
|
tests/test_loader.py
|
|
39
41
|
tests/test_pkg.py
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
# tests
|
|
2
|
-
|
|
3
|
-
# tests/test_env_api_keys.py
|
|
1
|
+
# tests/test_env.py
|
|
4
2
|
|
|
5
3
|
from flyshell import constants as c
|
|
6
4
|
from flyshell.abstract.base_plugin import BasePlugin
|
|
7
|
-
from flyshell.core import directory
|
|
5
|
+
from flyshell.core import directory
|
|
6
|
+
from flyshell.startup import env, loader
|
|
8
7
|
|
|
9
8
|
import pytest
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
@pytest.fixture
|
|
13
12
|
def mock_env_file(tmp_path, monkeypatch):
|
|
14
|
-
"""Sets up a temporary flyshell_keys.env and points env/c.APP_DIR to it."""
|
|
15
13
|
env_file = tmp_path / "flyshell_keys.env"
|
|
16
14
|
monkeypatch.setattr(c, "APP_DIR", tmp_path)
|
|
17
15
|
monkeypatch.setattr(env, "get_env_path", lambda: env_file)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tests/test_loader.py
|
|
2
2
|
|
|
3
3
|
from flyshell import constants as c
|
|
4
4
|
from flyshell.abstract.base_plugin import BasePlugin
|
|
5
|
-
from flyshell.
|
|
5
|
+
from flyshell.startup import loader
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
def test_loader_rejects_command_name_collision(tmp_path, monkeypatch):
|
|
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
|