Commit 1f41662
authored
Add configuration support for cli hosting (#79)
* feat: add configuration support with JSON file integration
- Introduced `TryAddJsonFile` method in `ConfigurationBuilderExtensions` to conditionally add JSON configuration files.
- Added new `CreativeCoders.Configuration` project to the solution with necessary dependencies.
- Enhanced `ICliHostBuilder` with `UseConfiguration` method for customizable configuration setups.
- Updated `Core.sln` and `CreativeCoders.Cli.Hosting` to incorporate new configuration capabilities.
* chore: update package dependencies to latest versions
- Upgraded multiple NuGet package references across source, sample, and test projects for consistency and security improvements.
- Updated dependencies include `Microsoft.Extensions.*`, `FakeItEasy`, `AwesomeAssertions`, `coverlet.collector`, `xunit.runner.visualstudio`, and others.
* feat(cli hosting): add configuration support to unit tests and integration tests
- Introduced tests for `UseConfiguration` extension in `DefaultCliHostBuilder` to validate service registration.
- Added integration test to ensure commands can access configuration settings at runtime.
- Enhanced CLI framework with configuration sample commands for testing.1 parent 2a491f6 commit 1f41662
58 files changed
Lines changed: 391 additions & 159 deletions
File tree
- samples
- BlazorWebAssemblySampleApp
- CakeBuildSample
- NetSampleApp
- ProcessUtilsSampleApp
- WebApiSampleApp
- source
- AspNetCore
- CreativeCoders.AspNetCore.Blazor
- CreativeCoders.AspNetCore.TokenAuth.Jwt
- CreativeCoders.AspNetCore.TokenAuthApi.Jwt
- CreativeCoders.AspNetCore
- CakeBuild/CreativeCoders.CakeBuild
- Cli/CreativeCoders.Cli.Hosting
- Configuration/CreativeCoders.Configuration
- Config/CreativeCoders.Config
- Core/CreativeCoders.Core
- Daemon
- CreativeCoders.Daemon.Linux
- CreativeCoders.Daemon.Windows
- CreativeCoders.Daemon
- Data
- CreativeCoders.Data.EfCore.SqlServer
- CreativeCoders.Data.EfCore
- CreativeCoders.Data.Nhibernate
- CreativeCoders.Data.NoSql
- DependencyInjection/CreativeCoders.DependencyInjection
- IO
- CreativeCoders.IO.Archives
- CreativeCoders.IO.Ports
- Localization/CreativeCoders.Localization
- Net
- CreativeCoders.Net.JsonRpc
- CreativeCoders.Net
- Options/CreativeCoders.Options.Core
- SysConsole
- CreativeCoders.SysConsole.App
- CreativeCoders.SysConsole.Cli.Parsing
- CreativeCoders.SysConsole.Core
- UnitTests/CreativeCoders.UnitTests
- tests
- CreativeCoders.AspNetCore.Blazor.UnitTests
- CreativeCoders.AspNetCore.Tests
- CreativeCoders.CakeBuild.Tests
- CreativeCoders.Cli.Tests
- Hosting
- CreativeCoders.CodeCompilation.UnitTests
- CreativeCoders.Core.UnitTests
- CreativeCoders.Data.NoSql.LiteDb.Tests
- CreativeCoders.DependencyInjection.UnitTests
- CreativeCoders.IO.UnitTests
- CreativeCoders.Localization.UnitTests
- CreativeCoders.Messaging.UnitTests
- CreativeCoders.MiscTest.UnitTests
- CreativeCoders.Net.UnitTests
- CreativeCoders.Reactive.UnitTests
- CreativeCoders.Scripting.UnitTests
- CreativeCoders.SysConsole.App.UnitTests
- CreativeCoders.SysConsole.Cli.Actions.UnitTests
- CreativeCoders.SysConsole.Cli.Parsing.UnitTests
- CreativeCoders.SysConsole.CliArguments.UnitTests
- CreativeCoders.SysConsole.UnitTests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
| |||
588 | 592 | | |
589 | 593 | | |
590 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
591 | 599 | | |
592 | 600 | | |
593 | 601 | | |
| |||
698 | 706 | | |
699 | 707 | | |
700 | 708 | | |
| 709 | + | |
| 710 | + | |
701 | 711 | | |
702 | 712 | | |
703 | 713 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments