Skip to content

Commit

Permalink
feat: improve message for ape pm list when no packages installed (#…
Browse files Browse the repository at this point in the history
…2290)

Co-authored-by: slush <[email protected]>
Co-authored-by: antazoey <[email protected]>
  • Loading branch information
3 people authored Sep 19, 2024
1 parent a2e2dd4 commit 07a792c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ape_pm/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def _list(cli_ctx, list_all):
packages.append(item)

if not packages:
click.echo("No packages installed.")
if list_all:
click.echo("No packages installed.")
else:
click.echo("No packages installed. Use `--all` to list all installed dependencies.")
return

# Output gathered packages.
Expand Down

0 comments on commit 07a792c

Please sign in to comment.