Skip to content

Commit

Permalink
Merge pull request #4 from wdolek/feature/move-projs-to-subdirs
Browse files Browse the repository at this point in the history
Move projects under `src` and `tests` dirs
  • Loading branch information
wdolek authored Aug 2, 2024
2 parents ddab4dc + 0f160e1 commit eb64164
Show file tree
Hide file tree
Showing 32 changed files with 20 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ builder.Configuration.AddSecretsManager(
});
```

There's helper class [`SecretProcessor<T>`](W4k.Extensions.Configuration.Aws.SecretsManager/SecretProcessor.cs) which
can be used to simplify implementation of custom processor (by providing implementation of [`ISecretStringParser<T>`](W4k.Extensions.Configuration.Aws.SecretsManager/Abstractions/ISecretStringParser.cs) and [`IConfigurationTokenizer<T>`](W4k.Extensions.Configuration.Aws.SecretsManager/Abstractions/IConfigurationTokenizer.cs)).
There's helper class [`SecretProcessor<T>`](src/W4k.Extensions.Configuration.Aws.SecretsManager/SecretProcessor.cs) which
can be used to simplify implementation of custom processor (by providing implementation of [`ISecretStringParser<T>`](src/W4k.Extensions.Configuration.Aws.SecretsManager/Abstractions/ISecretStringParser.cs) and [`IConfigurationTokenizer<T>`](src/W4k.Extensions.Configuration.Aws.SecretsManager/Abstractions/IConfigurationTokenizer.cs)).

### Configuration key transformation

It is possible to hook into the configuration key transformation, which is used to transform the tokenized configuration key.
By default, only [`KeyDelimiterTransformer`](W4k.Extensions.Configuration.Aws.SecretsManager/ConfigurationKeyTransformer.cs) is used.
By default, only [`KeyDelimiterTransformer`](src/W4k.Extensions.Configuration.Aws.SecretsManager/ConfigurationKeyTransformer.cs) is used.

`KeyDelimiterTransformer` transforms "`__`" to configuration key delimiter, "`:`".

Expand Down
15 changes: 12 additions & 3 deletions W4k.Extensions.Configuration.Aws.SecretsManager.sln
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W4k.Extensions.Configuration.Aws.SecretsManager", "W4k.Extensions.Configuration.Aws.SecretsManager\W4k.Extensions.Configuration.Aws.SecretsManager.csproj", "{9CB18F9D-A028-45FD-8F07-084ECB02C0DF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W4k.Extensions.Configuration.Aws.SecretsManager", "src\W4k.Extensions.Configuration.Aws.SecretsManager\W4k.Extensions.Configuration.Aws.SecretsManager.csproj", "{9CB18F9D-A028-45FD-8F07-084ECB02C0DF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W4k.Extensions.Configuration.Aws.SecretsManager.Tests", "W4k.Extensions.Configuration.Aws.SecretsManager.Tests\W4k.Extensions.Configuration.Aws.SecretsManager.Tests.csproj", "{C54F45CB-CEA0-40A8-8A1C-1A24DA0DBE7F}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W4k.Extensions.Configuration.Aws.SecretsManager.Tests", "tests\W4k.Extensions.Configuration.Aws.SecretsManager.Tests\W4k.Extensions.Configuration.Aws.SecretsManager.Tests.csproj", "{C54F45CB-CEA0-40A8-8A1C-1A24DA0DBE7F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W4k.Extensions.Configuration.Aws.SecretsManager.IntegrationTests", "tests\W4k.Extensions.Configuration.Aws.SecretsManager.IntegrationTests\W4k.Extensions.Configuration.Aws.SecretsManager.IntegrationTests.csproj", "{DBC85EDF-3FA2-436F-BBC4-C63F0081A373}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B0197811-771A-4E94-A7C2-2644096B768C}"
ProjectSection(SolutionItems) = preProject
Expand All @@ -11,7 +13,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W4k.Extensions.Configuration.Aws.SecretsManager.IntegrationTests", "W4k.Extensions.Configuration.Aws.SecretsManager.IntegrationTests\W4k.Extensions.Configuration.Aws.SecretsManager.IntegrationTests.csproj", "{DBC85EDF-3FA2-436F-BBC4-C63F0081A373}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{56EFFD8F-A115-42CE-8F4C-C63F5A1E6BE5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{1B35BE65-9A4D-4C04-AD1E-1A034323F04D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -32,4 +36,9 @@ Global
{DBC85EDF-3FA2-436F-BBC4-C63F0081A373}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBC85EDF-3FA2-436F-BBC4-C63F0081A373}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9CB18F9D-A028-45FD-8F07-084ECB02C0DF} = {56EFFD8F-A115-42CE-8F4C-C63F5A1E6BE5}
{DBC85EDF-3FA2-436F-BBC4-C63F0081A373} = {1B35BE65-9A4D-4C04-AD1E-1A034323F04D}
{C54F45CB-CEA0-40A8-8A1C-1A24DA0DBE7F} = {1B35BE65-9A4D-4C04-AD1E-1A034323F04D}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
</ItemGroup>

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
<None Include="..\images\configuration_128px.png" Pack="true" PackagePath="_img" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<None Include="..\..\images\configuration_128px.png" Pack="true" PackagePath="_img" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void NotThrowWhenSecretIsOptional()
});

Assert.That(config, Is.Not.Null);
CollectionAssert.IsEmpty(config.GetChildren());
CollectionAssert.IsEmpty(config.AsEnumerable());
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\W4k.Extensions.Configuration.Aws.SecretsManager\W4k.Extensions.Configuration.Aws.SecretsManager.csproj" />
<ProjectReference Include="..\..\src\W4k.Extensions.Configuration.Aws.SecretsManager\W4k.Extensions.Configuration.Aws.SecretsManager.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\W4k.Extensions.Configuration.Aws.SecretsManager\W4k.Extensions.Configuration.Aws.SecretsManager.csproj" />
<ProjectReference Include="..\..\src\W4k.Extensions.Configuration.Aws.SecretsManager\W4k.Extensions.Configuration.Aws.SecretsManager.csproj" />
</ItemGroup>

</Project>

0 comments on commit eb64164

Please sign in to comment.