feat: Add support for multiple environment files - #225
Conversation
OSL ChatGPT ReviewerNOTE: This is generated by an AI program, so some comments may not make sense. .makim.yamlLGTM! docs/spec.md
docs/template.md
src/makim/core.py
Suggested patch: src/makim/schema.json
tests/smoke/.env-multi-1LGTM! tests/smoke/.env-multi-2LGTM! tests/smoke/.makim-bash-group-scope.yaml
tests/smoke/.makim-bash-main-scope.yaml
tests/smoke/.makim-bash-task-scope.yaml
tests/smoke/.makim-complex.yaml
tests/smoke/.makim-env.yaml
tests/smoke/.makim-interpreters.yaml
tests/smoke/.makim-simple.yaml
def normalize_env_files(cfg: dict) -> list[str]:
"""Normalize env-files to a list"""
val = cfg.get("env-files", cfg.get("env-file", []))
if isinstance(val, str):
return [val]
if isinstance(val, list):
return [v for v in val if isinstance(v, str)]
raise TypeError("env-files must be str or list[str]")
tests/smoke/.makim-ssh.yaml
tests/smoke/.makim-sugar.yaml
tests/smoke/.makim-unittest.yaml
|
Pull Request description
How to test these changes
...Pull Request checklists
This PR is a:
About this PR:
Author's checklist:
complexity.
Additional information
Reviewer's checklist
Copy and paste this template for your review's note: