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
System.CommandLine is split into too many namespaces #1680
There was concern in our previous API review that the root namespace would be too cluttered for people to immediately find the most important "entry point" types in the library, which is why more namespaces were created. It would be good to simplify, though, and now before we remove the preview tag is the time to make breaking changes.
Here's a list of proposed changes, intended to move some of the most common types into the root System.CommandLine namespace while leaving other less commonly-used types in their more specific namespaces so as not to introduce clutter.
Remove the System.CommandLine.Builder namespace and move its two types to System.CommandLine.
Move System.CommandLine.Parsing.ParseResult to System.CommandLine.
Move System.CommandLine.Invocation.ICommandHandler to System.CommandLine.
@jonsequitur Was this reopened by mistake? It seems like it had just been closed via a PR approved by you and it was reopened the same day without a comment, so just wondering.
I'm not sure. It's more likely it was closed by mistake because of the tag in the PR, but that there was more work to be done to declare the issue completed.
Activity
Marusyk commentedon Apr 16, 2022
Can I take this one and remove System.CommandLine.Builder, CommandLine.Invocation, CommandLine.Parsing?
what about backward compatibility?
jonsequitur commentedon Apr 16, 2022
I think some discussion is needed.
There was concern in our previous API review that the root namespace would be too cluttered for people to immediately find the most important "entry point" types in the library, which is why more namespaces were created. It would be good to simplify, though, and now before we remove the preview tag is the time to make breaking changes.
jonsequitur commentedon Jun 30, 2022
Here's a list of proposed changes, intended to move some of the most common types into the root
System.CommandLinenamespace while leaving other less commonly-used types in their more specific namespaces so as not to introduce clutter.System.CommandLine.Buildernamespace and move its two types toSystem.CommandLine.System.CommandLine.Parsing.ParseResulttoSystem.CommandLine.System.CommandLine.Invocation.ICommandHandlertoSystem.CommandLine.glopesdev commentedon Feb 3, 2025
@jonsequitur Was this reopened by mistake? It seems like it had just been closed via a PR approved by you and it was reopened the same day without a comment, so just wondering.
jonsequitur commentedon Feb 4, 2025
I'm not sure. It's more likely it was closed by mistake because of the tag in the PR, but that there was more work to be done to declare the issue completed.