Skip to content

Logging, Config, Generic Host, and documentation - #20

Merged
DarthPedro merged 10 commits into
mainfrom
features/prep-for-wide-release
Sep 4, 2026
Merged

DarthPedro merged 10 commits into
mainfrom
features/prep-for-wide-release

Conversation

@DarthPedro

Copy link
Copy Markdown
Contributor
  • Moved the solution to use central package and central build management (and updated all csproj files)
  • Updated all dependencies to the latest versions.
  • Implemented builder extension method for WithLogging to support logging in Spectre cli app.
  • Implemented an IAnsiConsole logger, so log statements can be written out and support verbosity levels for log
    messages.
  • Added Logging.Cli sample to show how logging is configured and used in a command.
  • Implemented support for IConfiguration and IOptions DI registration in a new Extensions.Configuration child package
    to keeps the core with minimal dependencies.
  • Implemented Generic Host integration with CommandAppBuilder and Spectre.Console.Cli to support the common .NET app
    hosting model.
  • Added sample for GenericHost.
  • Updated the main readme and added readmes for each sub-package.
  • Added a full documentation set for this project: introduction, getting started, guides, and api references.
  • Added new packages to nuget-release script.

…up individual projects.

Turned on warnings as errors across all projects.
Fixed nullable setting in UnitTests project and fixed up all warnings/errors.
… on Spectre cli app.

Implemented an IAnsiConsole logger, so log statements can be written out and support verbosity levels for log
messages.
Added Logging.Cli sample to show how logging is configured and used in a command.
…r to access in other extensions to this builder.

Updated the logging builder extension to use that.
Added unit tests for new accessors.
Implemented WithOptions<T> registration on the CommandAppBuilder.
Added unit tests.
Implemented the Configuration.Cli sample app that shows how to register and use both IConfiguration and IOption<T> config data.
…re.Console.Cli... with a CommandAppBuilder pattern.

Added HostTypeRegistrar and HostTypeResolver to manage the host's service collection and Spectre registered types.
Implemented unit tests.
Added GenericHost.Cli sample app.
…ived class.

Added unit tests for those classes.
Turned on symbol link for nuget packages.
Consolidated some common package properties.
Split up main readme to package specific files.
clean up in preparation for release.
@DarthPedro
DarthPedro merged commit 490419d into main Sep 4, 2026
1 check passed
@DarthPedro
DarthPedro deleted the features/prep-for-wide-release branch September 4, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant