dronefly-cli 0.3.1__py3-none-any.whl → 0.3.2.dev1__py3-none-any.whl
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.
- dronefly_cli/main.py +4 -4
- {dronefly_cli-0.3.1.dist-info → dronefly_cli-0.3.2.dev1.dist-info}/METADATA +2 -2
- dronefly_cli-0.3.2.dev1.dist-info/RECORD +7 -0
- {dronefly_cli-0.3.1.dist-info → dronefly_cli-0.3.2.dev1.dist-info}/WHEEL +1 -1
- dronefly_cli-0.3.1.dist-info/RECORD +0 -7
- {dronefly_cli-0.3.1.dist-info → dronefly_cli-0.3.2.dev1.dist-info}/entry_points.txt +0 -0
- {dronefly_cli-0.3.1.dist-info → dronefly_cli-0.3.2.dev1.dist-info}/licenses/LICENSE +0 -0
dronefly_cli/main.py
CHANGED
|
@@ -8,7 +8,7 @@ import readline
|
|
|
8
8
|
from inspect import getmembers, isroutine
|
|
9
9
|
|
|
10
10
|
from dronefly.core import CLICommands, Format
|
|
11
|
-
from dronefly.core.models import Context,
|
|
11
|
+
from dronefly.core.models import Context, load_workspace, User
|
|
12
12
|
from dronefly.core.commands import ArgumentError, CommandError
|
|
13
13
|
from dronefly.core.constants import INAT_USER_DEFAULT_PARAMS
|
|
14
14
|
from rich.console import Console
|
|
@@ -109,8 +109,8 @@ async def do_command(commands, command_str: str, ctx: Context, *args):
|
|
|
109
109
|
|
|
110
110
|
async def get_context():
|
|
111
111
|
default_user_id = 1
|
|
112
|
-
|
|
113
|
-
user_config = await
|
|
112
|
+
workspace = load_workspace()
|
|
113
|
+
user_config = await workspace.user(default_user_id)
|
|
114
114
|
user_params = {"id": default_user_id}
|
|
115
115
|
for param in ("inat_user_id", *INAT_USER_DEFAULT_PARAMS):
|
|
116
116
|
param_value = None
|
|
@@ -123,7 +123,7 @@ async def get_context():
|
|
|
123
123
|
if param_value:
|
|
124
124
|
user_params[param] = param_value
|
|
125
125
|
user = User(**user_params)
|
|
126
|
-
ctx = Context(author=user,
|
|
126
|
+
ctx = Context(author=user, workspace=workspace)
|
|
127
127
|
return ctx
|
|
128
128
|
|
|
129
129
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dronefly-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2.dev1
|
|
4
4
|
Summary: Dronefly command-line interface
|
|
5
5
|
Author-email: Ben Armstrong <synrg@debian.org>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.11
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
11
11
|
Requires-Python: <3.13,>=3.11
|
|
12
|
-
Requires-Dist: dronefly-core
|
|
12
|
+
Requires-Dist: dronefly-core==0.5.4.dev2
|
|
13
13
|
Requires-Dist: pyreadline3<4,>=3.4.1
|
|
14
14
|
Requires-Dist: rich<15,>=13.2
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
dronefly_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
dronefly_cli/main.py,sha256=deQR0_QhsIjCX8Grjh4gLCQ75pj41i544gisNp3dx9o,6505
|
|
3
|
+
dronefly_cli-0.3.2.dev1.dist-info/METADATA,sha256=P-TtznntbNN0JRHeJrQdJ2sBf5IWY16YG8B1_EE4eGw,2805
|
|
4
|
+
dronefly_cli-0.3.2.dev1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
5
|
+
dronefly_cli-0.3.2.dev1.dist-info/entry_points.txt,sha256=Yl08ShPUhWWabsQffC0__9wE-mPC4cb9TfaQ3WRga2E,52
|
|
6
|
+
dronefly_cli-0.3.2.dev1.dist-info/licenses/LICENSE,sha256=kVXZNqaDhVhOsr1UKj6KzvhCDS8RoKtGWelE5gzv0Nc,55570
|
|
7
|
+
dronefly_cli-0.3.2.dev1.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
dronefly_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
dronefly_cli/main.py,sha256=B-B77qU_eYn6klgNCjeAfONTCM45iyHLS3ozNzqRv0w,6487
|
|
3
|
-
dronefly_cli-0.3.1.dist-info/METADATA,sha256=8jQGqWYQ6NBrOTbtwmAMYgoTMYYmREdV4ANuj6WFdOQ,2795
|
|
4
|
-
dronefly_cli-0.3.1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
5
|
-
dronefly_cli-0.3.1.dist-info/entry_points.txt,sha256=Yl08ShPUhWWabsQffC0__9wE-mPC4cb9TfaQ3WRga2E,52
|
|
6
|
-
dronefly_cli-0.3.1.dist-info/licenses/LICENSE,sha256=kVXZNqaDhVhOsr1UKj6KzvhCDS8RoKtGWelE5gzv0Nc,55570
|
|
7
|
-
dronefly_cli-0.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|