8000 Add govc-style CLI flags (-u, -k, -tls-ca-certs, -tls-known-hosts) that override env vars · Issue #45 · dominikzorgnotti/esx-hcl-check · GitHub
[go: up one dir, main page]

Skip to content

Add govc-style CLI flags (-u, -k, -tls-ca-certs, -tls-known-hosts) that override env vars #45

Closed

Description

@dominikzorgnotti

Follow-up to #43 / #44. -dc/-cluster already exist as flags defaulting to their GOVC_* env var (flag overrides env). Extend that pattern to the connection/TLS inputs for govc parity:

Flag Env Type
-u GOVC_URL string
-k GOVC_INSECURE bool
-tls-ca-certs GOVC_TLS_CA_CERTS string
-tls-known-hosts GOVC_TLS_KNOWN_HOSTS string

Semantics: flag defaults to the env value, an explicit flag wins. Pure ergonomics/parity — no new capability. GOVC_TLS_HANDSHAKE_TIMEOUT stays env-only (govc has no flag for it). Password stays env-only (no secrets on CLI). Client-cert auth (-cert/-key) intentionally out of scope for now.

Activity

  1. added a commit that references this issue on Jul 3, 2026
    097bd6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0