Skip to content

Render --help=config from the help model - #388

Merged
helly25 merged 1 commit into
mainfrom
help/port-config-topic
Aug 8, 2026
Merged

Render --help=config from the help model#388
helly25 merged 1 commit into
mainfrom
help/port-config-topic

Conversation

@helly25

@helly25 helly25 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Second slice of retiring the imperative prose-topic renderers onto the help model (EPIC #154; follows #387 stats).

What

  • help_build.cc: add ConfigSection() - intro prose, a Layers subsection (precedence tiers as a table + the no-discovery / --no-config note), Choosing a style and Arming dangerous directives subsections as wrapping prose, and the config-tagged flags (globals SOT) as model entries.
  • Route --help=config through TopicReference; add ConfigSection to BuildReference right after Description, so --man / --markdown / --help=full gain it.
  • Delete RenderConfig and its RenderHelp branch.

Effect

--help=config now wraps to --width and indents consistently (was a fixed-width blob). Verified --width=60: max line length 60.

Test

  • bazel test //xff/... (lean 85) and --config=xff_full (90, incl. the XFF.md drift guard) green; XFF.md regenerated.
  • help_build_test (section list) updated; new config-topic render test.

Remaining prose topics: cookbook / notice / license (verbatim) / help-guide, one PR each.

…eference)

Port the --help=config topic off the imperative RenderConfig onto the help model:
add ConfigSection() - an intro, a Layers subsection (the precedence tiers as a table
plus the no-discovery / --no-config note), Choosing-a-style and Arming subsections
as wrapping prose, and the config-tagged flags (globals SOT) as model entries. Route
--help=config through TopicReference and add it to BuildReference after Description
so --man / --markdown / --help=full gain the section. Delete RenderConfig and its
RenderHelp branch. Regenerate XFF.md; update help_build_test (section list) and add a
config-topic render test.
@helly25
helly25 enabled auto-merge (squash) August 8, 2026 10:59
@helly25
helly25 merged commit 3374d43 into main Aug 8, 2026
9 checks passed
@helly25
helly25 deleted the help/port-config-topic branch August 8, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant