Skip to content

feat: add --config flag and SL_CONFIG env var for config path#2

Merged
fdematos merged 1 commit intomainfrom
feat/config-path-option
Jan 25, 2026
Merged

feat: add --config flag and SL_CONFIG env var for config path#2
fdematos merged 1 commit intomainfrom
feat/config-path-option

Conversation

@fdematos
Copy link
Contributor

Summary

  • Add --config CLI flag to specify configuration file path
  • Add SL_CONFIG environment variable as fallback
  • Priority: flag > env > default (config.yaml)
  • Rename Go module from github.com/fvigneault/smart-llama to github.com/smartfrog/smart-llama

Usage

# CLI flag (highest priority)
./smart-llama --config /path/to/config.yaml

# Environment variable (medium priority)
SL_CONFIG=/path/to/config.yaml ./smart-llama

# Default (lowest priority)
./smart-llama  # uses config.yaml

Testing

  • Added unit tests for resolveConfigPath() covering all priority scenarios
  • All existing tests pass with the module rename

- Add --config CLI flag to specify configuration file path
- Add SL_CONFIG environment variable as fallback
- Priority: flag > env > default (config.yaml)
- Rename module from fvigneault to smartfrog
@fdematos fdematos merged commit 2b9b8d9 into main Jan 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments