Skip to content

feat(export): add --apps for multi-app JSON export - #14

Merged
bfirestone merged 1 commit into
mainfrom
feat/improve-k8s-support
Nov 16, 2026
Merged

bfirestone merged 1 commit into
mainfrom
feat/improve-k8s-support

Conversation

@bfirestone

Copy link
Copy Markdown
Contributor

envctl export --apps api,web --env local --format json prints every listed app in one object: {"app": {"KEY": "VALUE"}}. Each app keeps its own values. Any failing app fails the run and prints nothing.

Tilt called envctl once per service. 1Password reads skip the keyring cache, so a full start spawned 18 op processes. A per-run memo in internal/secrets/memo.go now shares reads between apps that resolve to the same backend scope. A whole-item read never answers a keyed read because 1Password normalizes labels in one path only.

The flag takes a comma list or repeated --apps. Empty names are rejected because GetApplication("") falls back to an arbitrary app.

Verify: go test -count=1 ./.... internal/cmd/export_apps_test.go uses .Once() mocks, so a second fetch of a shared secret fails the test.

Tilt calls envctl once per service, and 1Password reads skip the keyring cache, so one start spawned 18 `op` processes. A per-run memo shares reads across applications that resolve to the same backend scope. A whole-item read never answers a keyed read because 1Password normalizes labels in one path and not the other.
@bfirestone
bfirestone merged commit 30f6ed3 into main Nov 16, 2026
3 checks passed
@bfirestone
bfirestone deleted the feat/improve-k8s-support branch November 16, 2026 23:48
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