We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73cf774 commit 1102a89Copy full SHA for 1102a89
packages/settings-library/src/settings_library/utils_cli.py
@@ -66,6 +66,9 @@ def print_as_envfile(
66
typer.echo(f"# {field.description}")
67
if isinstance(value, Enum):
68
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)
72
typer.echo(f"{name}={value}")
73
74
0 commit comments