Skip to content

Commit 3558c77

Browse files
committed
Address review
1 parent f1e06e7 commit 3558c77

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

qfieldcloud_sdk/cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,14 @@ def list_projects(ctx: Context, include_public: bool, **opts) -> None:
228228
@cli.command()
229229
@click.argument("project_id")
230230
@click.pass_context
231-
def show_project(ctx: Context, project_id: str) -> None:
232-
"""Show QFieldCloud project data."""
231+
def get_project(ctx: Context, project_id: str) -> None:
232+
"""Get QFieldCloud project data."""
233233

234-
project: Dict[str, Any] = ctx.obj["client"].show_project(project_id)
234+
project: Dict[str, Any] = ctx.obj["client"].get_project(project_id)
235235

236236
if ctx.obj["format_json"]:
237237
print_json(project)
238238
else:
239-
log("Listing projects…")
240239
if project:
241240
log("Project data:")
242241
log(format_project_table([project]))

qfieldcloud_sdk/sdk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,21 +377,21 @@ def list_projects(
377377
)
378378
return cast(List, payload)
379379

380-
def show_project(
380+
def get_project(
381381
self,
382382
project_id: str,
383383
) -> Dict[str, Any]:
384-
"""Show project data.
384+
"""Get project data.
385385
386386
Args:
387-
project_id: the project data to list data for
387+
project_id: the project data to get data for.
388388
389389
Returns:
390390
A dictionary containing project details.
391391
392392
Example:
393393
```python
394-
client.show_project()
394+
client.get_project(project_id)
395395
```
396396
"""
397397
payload = self._request_json("GET", f"projects/{project_id}")

0 commit comments

Comments
 (0)