Context
The hidden orbitdock hook-forward subcommand in orbitdock-server/crates/cli/src/cli.rs accepts --server-url and --auth-token, but those fields do not declare environment variable support.
That means manual debugging and temporary overrides cannot use env vars the same way the rest of the CLI can. Installed hooks usually rely on hook-forward.json, but an env-based override is still useful and should behave predictably.
Task
Add environment variable support for the hidden HookForward command.
Please:
- wire
server_url to ORBITDOCK_URL
- wire
auth_token to ORBITDOCK_AUTH_TOKEN
- keep precedence as
explicit flag > env var > persisted hook-forward config > default
- add a focused CLI parsing test so this does not regress later
Acceptance Criteria
orbitdock hook-forward can read the server URL from ORBITDOCK_URL.
orbitdock hook-forward can read the auth token from ORBITDOCK_AUTH_TOKEN.
- Explicit flags still win over env vars.
- There is a nearby test covering the env-backed parse path.
Files
orbitdock-server/crates/cli/src/cli.rs
orbitdock-server/crates/server/src/admin/hook_forward.rs
Context
The hidden
orbitdock hook-forwardsubcommand inorbitdock-server/crates/cli/src/cli.rsaccepts--server-urland--auth-token, but those fields do not declare environment variable support.That means manual debugging and temporary overrides cannot use env vars the same way the rest of the CLI can. Installed hooks usually rely on
hook-forward.json, but an env-based override is still useful and should behave predictably.Task
Add environment variable support for the hidden
HookForwardcommand.Please:
server_urltoORBITDOCK_URLauth_tokentoORBITDOCK_AUTH_TOKENexplicit flag > env var > persisted hook-forward config > defaultAcceptance Criteria
orbitdock hook-forwardcan read the server URL fromORBITDOCK_URL.orbitdock hook-forwardcan read the auth token fromORBITDOCK_AUTH_TOKEN.Files
orbitdock-server/crates/cli/src/cli.rsorbitdock-server/crates/server/src/admin/hook_forward.rs