Skip to content

Commit 1102a89

Browse files
committed
fix
1 parent 73cf774 commit 1102a89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/settings-library/src/settings_library/utils_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ def print_as_envfile(
6666
typer.echo(f"# {field.description}")
6767
if isinstance(value, Enum):
6868
value = value.value
69+
elif isinstance(value, dict | list):
70+
# Serialize complex objects as JSON to ensure they can be parsed correctly
71+
value = json_dumps(value)
6972
typer.echo(f"{name}={value}")
7073

7174

0 commit comments

Comments
 (0)