Skip to content

Question: Usage models with Service Collection (not using Generic Host) #1455

Open
@Simonl9l

Description

@Simonl9l

I have been using a different cli library, that has some great features, and is very usable, but lacks functionality such as tab completion (per dotnetsuggest`) However it does work well with using a raw ServiceCollection and provides the ability to inject those services into commands.

Im assessing the lift to migrate.

I see that command-line-api has Host Builder support (via .UseHost by scanning issues - open and closed) bit not specific documentation.

Are there any examples out there of just using the ServiceCollection with DI support (the other library uses reflection)?

One hopes in-time that (as other libraries) the DI integration is not tightly integrated such that one can use different services containers (albeit in the other library once would need to write a custom Convention vs the included DI one to achieve this) ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions