1
0
forked from clan/clan-core

clan: state list improve formatting

This commit is contained in:
a-kenji 2024-06-25 11:50:19 +02:00
parent d1f2679c45
commit af2ffb7e5e

View File

@ -58,11 +58,11 @@ def list_state_folders(machine: str, service: None | str = None) -> None:
for folder in folders:
print(f" - {folder}")
if pre_backup := state.get(service)["preBackupCommand"]:
print(f"preBackupCommand: {pre_backup}")
print(f" preBackupCommand: {pre_backup}")
if pre_restore := state.get(service)["preRestoreCommand"]:
print(f"preRestoreCommand: {pre_restore}")
print(f" preRestoreCommand: {pre_restore}")
if post_restore := state.get(service)["postRestoreCommand"]:
print(f"postRestoreCommand: {post_restore}")
print(f" postRestoreCommand: {post_restore}")
print("")