Skip to content

The extras files are merged into the entries they patched; a test keeps them gone (refactor 3.5, D13) - #249

Merged
sf624 merged 1 commit into
refactor/3.5d-examplesfrom
refactor/3.5e-extras
Oct 23, 2026
Merged

sf624 merged 1 commit into
refactor/3.5d-examplesfrom
refactor/3.5e-extras

Conversation

@sf624

@sf624 sf624 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Refactor step 3.5 (option parsing), layer 3 of 3. Stacked on #248.

Addresses: D13

  • D13: src/dict/extras.ts, extrasFiles.ts and extrasAdmin.ts are gone with applyExtras: each command's extra options and subcommands now sit in the entry of the file that defines the command. A name the main entry already defined kept the main entry's meaning, as mergeOptions did. A dump of every entry (options, values, texts, subcommands) is identical before and after, and so is the sample.sh dump. test/dictionary.test.ts fails if an extras file or applyExtras comes back; cmd() already throws on an option named twice in one entry. scripts/check-dict-manpages.ts walks every dict table.

No CHANGELOG line: users see no change.

Checks: npm test, extract-snippets --check, Node 24 coverage (every line and branch) pass.

🤖 Generated with Claude Code

@sf624
sf624 added this pull request to stack #250 October 23, 2026 11:48
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

…ps them gone (refactor 3.5, D13)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sf624
sf624 force-pushed the refactor/3.5e-extras branch from 0719704 to a3e130c Compare October 23, 2026 13:03
@sf624
sf624 merged commit ce7970a into main Oct 23, 2026
16 checks passed
@sf624
sf624 deleted the refactor/3.5e-extras branch October 23, 2026 13:22
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