You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d98b0e1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(tui): write the same files as the CLI; prefill from env and config
- A TUI CSV gets the takeover_candidate column when CNAME records are
requested, and a JSONL file ends with the run-quality summary.
- The summary builder moves to internal/report, shared by the CLI and the
TUI, so both produce the same report.
- tui.Start takes Options: the version for the report, and SUBENUM_* /
config-file values that pre-fill the form over the last session's.
Fixes#118
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
30
- The minimum Go version is now 1.26 (`go 1.26.0` in go.mod), required by current `golang.org/x/sys` and `golang.org/x/text`; both were bumped and `govulncheck -show verbose` now reports no vulnerable modules. Dependabot also updates indirect modules, and CI lints with errorlint, nilerr, contextcheck, noctx, copyloopvar, usestdlibvars and revive, with errcheck exemptions narrowed to stdout prints (#83).
31
31
32
32
### Fixed
33
+
- The TUI writes the same files as the CLI: a CSV gets the `takeover_candidate` column when CNAME records are requested, and a JSONL file ends with the run-quality summary line. Its form starts from `SUBENUM_*` and config-file values, over the values remembered from the last session. The report is built by a new `internal/report` package that both front ends share (#118).
33
34
- Shell completions: `-simulate-zone`, `-seeds`, `-resume` and `-state` complete file names in every shell (fish previously disabled file completion for them), bash and fish complete the shell name after `completion`, and the PowerShell completer reads the previous word, so file flags fall back to path completion and `-format`/`-type` offer their values. A test fails when a flag that takes a file is missing from the list, and CI checks that every generated script parses in its shell (#117).
34
35
- New `-o` and `-stats` files get 0666 less the umask, as `os.Create` would, instead of a fixed 0644, so results stay private under `umask 077`; an `-o` path that is a symlink keeps the link and replaces the file it points at, instead of turning into a regular file (#119).
35
36
- Takeover hints resolve each CNAME target once per scan instead of once per result, so hundreds of names aliased to the same CDN or SaaS host no longer spend a query and a `-rate` slot each; concurrent results for one target share the lookup, and an inconclusive one is retried by the next name (#121).
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -394,6 +394,7 @@ Settings you repeat on every run can live in a config file or the environment. P
394
394
395
395
- The config file is `config.json` in your user config directory (`~/.config/subenum/` on Linux, `~/Library/Application Support/subenum/` on macOS, `%AppData%\subenum\` on Windows), or the path in `SUBENUM_CONFIG`. Keys are flag names; values are strings, numbers or booleans, and `exclude` and `type` also take a list of strings.
396
396
- Each flag also reads `SUBENUM_<FLAG>`, upper-cased with dashes as underscores: `SUBENUM_DNS_SERVER`, `SUBENUM_RATE`, `SUBENUM_T`.
397
+
- The TUI (`-tui`) starts its form from these values too, over the values it remembers from its last session.
397
398
-`subenum -print-config` shows every effective setting and where it came from (`flag`, `env`, `config` or `default`). It, `-h` and `-version` still work when a value is bad, so you can find it; a scan refuses to start and names every bad value.
398
399
399
400
Shell completions and a man page are generated from the same flags, and release archives include them under `completions/` and `man/`:
Copy file name to clipboardExpand all lines: docs/cli.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ Settings you repeat on every run can live in the environment or a config file. P
35
35
36
36
- Each flag reads `SUBENUM_<FLAG>`, upper-cased with dashes as underscores: `SUBENUM_DNS_SERVER`, `SUBENUM_RATE`, `SUBENUM_T`.
37
37
- The config file is `config.json` in your user config directory (`~/.config/subenum/` on Linux, `~/Library/Application Support/subenum/` on macOS, `%AppData%\subenum\` on Windows), or the path in `SUBENUM_CONFIG`. Keys are flag names; values are strings, numbers or booleans, and `exclude` and `type` also take a list of strings. Mode flags (`tui`, `version`, `print-config`, `resume`) are command-line only.
38
+
- The TUI (`-tui`) starts its form from these values too, over the values it remembers from its last session.
38
39
-`subenum -print-config` prints every effective setting and where it came from: `flag`, `env`, `config` or `default`. With a bad value, `-h`, `-version` and `-print-config` still run and warn; a scan refuses to start and names every bad value.
39
40
- When `-attempts` and the deprecated `-retries` both have a value, the one from the higher-precedence source wins; both on the command line (or both from the same file) is an error.
0 commit comments