Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(cli): rely on typer.locate instead of homemade function #290

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dicogis/cli/cmd_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from dicogis.utils.notifier import send_system_notify
from dicogis.utils.slugger import sluggy
from dicogis.utils.texts import TextsManager
from dicogis.utils.utils import Utilities

# ############################################################################
# ########## Globals ###############
Expand Down Expand Up @@ -241,7 +240,8 @@ def inventory(
] = None,
verbose: bool = False,
):
"""Main command.
"""List, extract metadata from geospatial datasets (files or database) and store it
as files.
Make an inventory of geodata files starting from a folder and/or
databases using connection listed in pg_service.conf and store everything in an
Expand Down Expand Up @@ -412,7 +412,7 @@ def inventory(
notification_sound=opt_notify_sound,
)
if opt_open_output:
Utilities.open_dir_file(target=output_path)
typer.launch(url=f"{output_path.resolve()}")

# look for geographic database
if pg_services:
Expand Down Expand Up @@ -478,6 +478,6 @@ def inventory(
)

if opt_open_output:
Utilities.open_dir_file(target=output_path)
typer.launch(url=f"{output_path.resolve()}")

logger.info(f"Logs stored in {Path(app_dir).joinpath('logs')}")
Loading