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
Prefill the TUI from CLI flags and expose the resolver pool in the form #195
subenum -tui example.com -w big.txt -r resolvers.txt silently drops the domain, wordlist and resolver file: the help says all other flags are ignored with -tui. The resolver pool, a headline feature, is unreachable from the TUI at all.
Where
main.go:174 ("all other flags are ignored")
internal/tui/model.go:52 (the form already accepts Settings from env and config)
internal/tui/config.go:12-29 (no ResolverPool or -r field)
internal/scan/settings.go:16-25 (no resolver-pool token, so the "every setting has a label" test cannot catch the gap)
Proposal
Treat the positional domain and parsed CLI flags as the top layer of Options.Settings when launching the TUI, so the form opens pre-filled. Add a "Resolvers file" field and a SettingResolverPool token.
Who benefits
TUI users who already have a command line; teaching labs that want to launch the TUI with a prepared config.
Acceptance criteria
Flags given with -tui populate the form
Resolver pool configurable from the form and saved in last.json
Tests in internal/tui/form_test.go and main_test.go
-tui now pre-fills the form from the command line: the domain argument and every flag the form has a field for are layered over SUBENUM_*, config file and remembered values. Flags it has no field for (and extra domains / extra -w files; the form takes the first -w) are named in a warning instead of being dropped silently. The form gains Resolver Pool (-r) and Rate/Resolver (-rate-per-resolver) fields, saved in last.json; the pool is ignored with Simulate on, as on the CLI, and a bad pool file is reported on the form. -r and -rate-per-resolver are no longer in tuiOmittedFlags, so TestSettingNamesAgreeAcrossFrontEnds covers them.
Design choices: the new fields are plain labelled form fields rather than new scan.Setting tokens, since no engine message names them (the cross-front-end flag test now catches the gap the issue describes). After a scan, r restores the values just scanned rather than re-applying launch flags over the user's form edits.
Verified: new tests TestLaunchOptionsPrefillTheForm, TestResolverPoolField (internal/tui/form_test.go), TestPoolErrorStaysOnForm, a last.json round-trip of the pool fields, and TestTUIOptionsFromFlags (main_test.go); go build, go vet, go test -race -shuffle=on ./... and golangci-lint run all clean.
Activity
TMHSDigital commentedon Nov 10, 2026
Fixed in b1ee267.
-tuinow pre-fills the form from the command line: the domain argument and every flag the form has a field for are layered overSUBENUM_*, config file and remembered values. Flags it has no field for (and extra domains / extra-wfiles; the form takes the first-w) are named in a warning instead of being dropped silently. The form gains Resolver Pool (-r) and Rate/Resolver (-rate-per-resolver) fields, saved inlast.json; the pool is ignored with Simulate on, as on the CLI, and a bad pool file is reported on the form.-rand-rate-per-resolverare no longer intuiOmittedFlags, soTestSettingNamesAgreeAcrossFrontEndscovers them.Design choices: the new fields are plain labelled form fields rather than new
scan.Settingtokens, since no engine message names them (the cross-front-end flag test now catches the gap the issue describes). After a scan,rrestores the values just scanned rather than re-applying launch flags over the user's form edits.Verified: new tests
TestLaunchOptionsPrefillTheForm,TestResolverPoolField(internal/tui/form_test.go),TestPoolErrorStaysOnForm, a last.json round-trip of the pool fields, andTestTUIOptionsFromFlags(main_test.go);go build,go vet,go test -race -shuffle=on ./...andgolangci-lint runall clean.