@aetherball/swarp
v0.4.1
Published
DX toolchain CLI
Downloads
34
Readme
Prerequisites
direnvopto manage secrets forop://secrets
How it fits together
direnv watches each directory's .envrc and, once you've allowed it, auto-loads whatever it points at every time you cd in — for a repo set up with swarp, that's .env. swarp's job is to keep .env populated; direnv's job is to load it. Neither reads the other's config, they just agree on the filename.
.env.templatefiles holdop://references and are committed to the repo.swarp secrets refreshresolves those references into a gitignored.envfile, written next to each template — this is the file direnv loads. Only quoted references (KEY="op://...") are resolved; an unquoted reference is flagged with a warning instead.swarp direnv allowauthorizes the.envrc. Until it's allowed, direnv won't load.envno matter how many times you refresh it — runallowfirst, once, so every later refresh takes effect automatically on your nextcd.swarp run <command>runs a single command with the environment loaded (direnv exec .) without needing.envrcto be allowed at all. Use this in non-interactive shells such as CI or agents.
