fabro/lib/crates/fabro-cli
Bryan Helmkamp 04d43785e6
refactor(server): drop EnvSource trait for direct HashMap passing
After StubEnv was removed, the EnvSource trait had only two impls
(ProcessEnv unit struct and a blanket HashMap impl) and tests already
passed HashMaps. Replace the trait with a free `process_env_snapshot()`
function and take `HashMap<String, String>` by value in
`ServerSecrets::load` and the startup validators.

Also flatten `StartupResolution` to a `(AuthMode, ServerSecrets)` tuple
and drop the `StartupValidationError` wrapper in favor of
`anyhow::Result`, and inline the `*_with_lookup` test-only wrappers in
`spawn_env.rs` so tests call `apply_allowlist` directly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 08:22:35 -04:00
..
src refactor(server): drop EnvSource trait for direct HashMap passing 2026-04-23 08:22:35 -04:00
tests/it refactor(server): drop StubEnv newtype for HashMap EnvSource impl 2026-04-23 08:03:00 -04:00
build.rs feat(cli): surface debug build profile in version output 2026-04-18 09:44:54 -04:00
Cargo.toml test(cli): suppress browser launch under spawned fabro test subprocesses 2026-04-22 07:50:34 -04:00