feat(config): Add support for env var configuration#896
Open
keithy wants to merge 2 commits intosipeed:mainfrom
Open
feat(config): Add support for env var configuration#896keithy wants to merge 2 commits intosipeed:mainfrom
keithy wants to merge 2 commits intosipeed:mainfrom
Conversation
This commit introduces support for two environment variables, allowing users to override the default paths for picoclaw's home directory and configuration file. - `PICOCLAW_CONFIG`: Directly specifies the path to the `config.json` file. This is initialised first, takes precedence over the hardcoded path, and is ideal for containerized deployments or custom config management. - `PICOCLAW_HOME`: Overrides the root directory for all picoclaw data, (except the config) (e.g., `~/.picoclaw`). This is useful for portable installations or placing data in non-standard locations. This change provides greater flexibility for running picoclaw in various environments without being tied to the default home directory structure.
a31b85d to
a7f5e00
Compare
a7f5e00 to
8e71285
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
This commit introduces support for two environment variables, allowing users to override the default paths for picoclaw's home directory and configuration file.
PICOCLAW_CONFIG: Directly specifies the path to theconfig.jsonfile. This is initialised first, takes precedence over the hardcoded path, and is ideal for containerized deployments or custom config management.PICOCLAW_HOME: Overrides the root directory for all picoclaw data, (except the config) (e.g.,~/.picoclaw). This is useful for portable installations or placing data in non-standard locations.This change provides greater flexibility for running picoclaw in various environments without being tied to the default home directory structure.
🗣️ Type of Change
[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[x] ✨ New feature (non-breaking change which adds functionality)
[ ] 📖 Documentation update
[ ] ⚡ Code refactoring (improved service management)
🤖 AI Code Generation
[x] 👨💻 Mostly Human-written (Human lead)
🔗 Related Issue
📚 Technical Context
🧪 Test Environment
Hardware: Rock64 (ARM64)
OS: Debian/Ubuntu (Linux) armbian, mise
Channels: CLI / Local Daemon
☑️ Checklist
[x] My code/docs follow the style of this project.
[x] I have performed a self-review of my own changes.
[x] I have updated the documentation (added systemd instructions).