Skip to content

DX: shell completions, man page, and defaults via config file or SUBENUM_* env vars #88

Closed

Description

@TMHSDigital

Why it matters

With more than 25 flags, users repeat the same -dns-server, -rate, -t and -timeout on every run. The TUI remembers settings, but the CLI doesn't. Completions and a man page are table stakes for tools packaged in distros (see #62).

Proposal

  • subenum completion bash|zsh|fish|powershell, generated from the FlagSet, and bundled into release archives by GoReleaser.
  • A man page generated at release time from the same source as the docs flag table (GitHub Pages site is out of date with the CLI and undersells the tool #64).
  • Default values from ~/.config/subenum/config.toml (or JSON, to avoid a new dependency) and from SUBENUM_DNS_SERVER, SUBENUM_RATE and so on. Precedence: flag > env > config file > built-in default.
  • A -print-config flag that shows the effective settings and where each came from.

Done when

Completions and the man page ship in releases, and the precedence is documented and tested.

Activity

  1. added
    enhancement
    priority: low
    area: cli
    on Oct 5, 2026
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

    area: clienhancementpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions