Skip to content

Commit 61df358

Browse files
committed
Remove bin directory
1 parent 8e390a3 commit 61df358

3 files changed

Lines changed: 19 additions & 5 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
package_dir={"": "src"},
3232
packages=setuptools.find_packages(where="src"),
3333
python_requires=">=3.6",
34-
entry_points={"console_scripts": ["qfieldcloud-cli = bin.qfieldcloud_cli:cli"]},
34+
entry_points={"console_scripts": ["qfieldcloud-cli = qfieldcloud_sdk.cli:cli"]},
3535
)

src/bin/__init__.py

Whitespace-only changes.
Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,20 @@ def upload_files(ctx, project_id, project_path, filter_glob, throw_on_error):
308308
help="Download file even if it already exists locally. Default: False",
309309
)
310310
@click.pass_context
311-
def download_files(ctx, project_id, local_dir, filter_glob, throw_on_error, force_download):
311+
def download_files(
312+
ctx, project_id, local_dir, filter_glob, throw_on_error, force_download
313+
):
312314
"""Download QFieldCloud project files."""
313315

314316
log(f'Downloading project "{project_id}" files to {local_dir}…')
315317

316318
files = ctx.obj["client"].download_project(
317-
project_id, local_dir, filter_glob, throw_on_error, show_progress=True, force_download=force_download,
319+
project_id,
320+
local_dir,
321+
filter_glob,
322+
throw_on_error,
323+
show_progress=True,
324+
force_download=force_download,
318325
)
319326

320327
if ctx.obj["format_json"]:
@@ -468,13 +475,20 @@ def package_latest(ctx, project_id):
468475
help="Download file even if it already exists locally. Default: False",
469476
)
470477
@click.pass_context
471-
def package_download(ctx, project_id, local_dir, filter_glob, throw_on_error, force_download):
478+
def package_download(
479+
ctx, project_id, local_dir, filter_glob, throw_on_error, force_download
480+
):
472481
"""Download packaged QFieldCloud project files."""
473482

474483
log(f'Downloading the latest project "{project_id}" package files to {local_dir}…')
475484

476485
files = ctx.obj["client"].package_download(
477-
project_id, local_dir, filter_glob, throw_on_error, show_progress=True, force_download=force_download,
486+
project_id,
487+
local_dir,
488+
filter_glob,
489+
throw_on_error,
490+
show_progress=True,
491+
force_download=force_download,
478492
)
479493

480494
if ctx.obj["format_json"]:

0 commit comments

Comments
 (0)