Skip to content

🔧 Make hidden hook-forward CLI flags honor environment variables #54

@Robdel12

Description

@Robdel12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readySmall task suitable for agent dispatch

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions