print nothing if secret collections are empty

This commit is contained in:
Jörg Thalheim
2023-08-09 14:22:56 +02:00
parent c535cf78a1
commit 6c169b0bed
3 changed files with 32 additions and 12 deletions

View File

@@ -178,7 +178,9 @@ def list_secrets() -> list[str]:
def list_command(args: argparse.Namespace) -> None:
print("\n".join(list_secrets()))
lst = list_secrets()
if len(lst) > 0:
print("\n".join(lst))
def get_command(args: argparse.Namespace) -> None: