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
I have verified that I am running the latest version of the EcoreNetto
I have searched open and closed issues to ensure it has not already been reported
Description
Summary:Program.CreateCommandChain repeats four near-identical blocks that each create a command, set an action that opens a DI scope, resolves a generator + version checker, builds a handler, and adds the command. Adding a report means copying the block.
Proposed solution: Extract a generic helper, e.g. AddReportCommand<TCommand, TGenerator>(root, host), that performs the scope/resolve/handler wiring once.
Acceptance criteria:
The four commands are registered via a shared helper with no copy-pasted scope/resolve logic.
CLI behavior is unchanged (existing command tests pass).
Prerequisites
Description
Program.CreateCommandChainrepeats four near-identical blocks that each create a command, set an action that opens a DI scope, resolves a generator + version checker, builds a handler, and adds the command. Adding a report means copying the block.ECoreNetto.Tools/Program.cs:121-179AddReportCommand<TCommand, TGenerator>(root, host), that performs the scope/resolve/handler wiring once.