Replies: 1 comment 2 replies
-
Hello @Gidmark, There is a basic example of DI usage located in the Examples solution, see Also, there are a couple of comments on various threads that might be helpful too, namely:
From #1110 And a real world, fully worked example of a spectre.console user's app with DI, see: #1412 (comment) and the user's full repo here: https://github.com/recyclarr/recyclarr/blob/cdf4b2768602f1f4e988d43ee73d14bc097f37c8/src/Recyclarr.Cli/Program.cs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are working on a larger project where we have a large amount of services and functionality (different databases etc). Are there any recommended patterns to look for when adding a simple CLI tool for this? I don't want to initiate database connections for commands that simply doesn't need them, as an example. The basic idea with the CLI is to add some help commands and test commands.
Beta Was this translation helpful? Give feedback.
All reactions