refactor/introspect: split the git-style subcommand and flag parsers into helpers #91
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/complexity-introspect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #71, the introspect slice. ParseSubcommands was at Sonar cognitive complexity 27 after #89 and ParseFlags at 36. ParseSubcommands now calls parseTwoColumnEntries, parseCommandBlocks and parseNameOnlyEntries, and ParseFlags uses gitFlag and addSimpleFlag. Before and after the change every parser entry point was dumped for every fixture under testdata, including the name-only catalog mode, and the dumps are identical. Existing parser tests and the fixture regression test from #89 pass untouched. 🤖 Generated with Claude Code