Skip to content

config: augment field resolution#1853

Draft
omar-polo wants to merge 2 commits into
mainfrom
op/rework-config
Draft

config: augment field resolution#1853
omar-polo wants to merge 2 commits into
mainfrom
op/rework-config

Conversation

@omar-polo

Copy link
Copy Markdown
Contributor

and clean up the code a bit, now everything lives in the config subpackage.

@omar-polo
omar-polo marked this pull request as ready for review December 29, 2025 10:10
@poolpOrg
poolpOrg marked this pull request as draft January 5, 2026 09:19
@poolpOrg poolpOrg moved this from Todo to In Progress in plakar v1.1.0-beta.1 Jan 9, 2026
If a key value starts with a special value, change how the resolution
works:

* if it's `cmd:' run that as a command
* if it's "env:" lookup the environment variable
* if it's "file:" read the target file
* otherwise, use the raw value

One can use "raw:" to disambiguate.

As a special case, handle `passphrase_cmd' here as well.

For example, this will run the given command to resolve the access
key value:

	$ plakar store add foo s3://... access_key='cmd:plass cat foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants