Skip to content

Commit

Permalink
[ODS-4830] Add Secret Support to the Load Tools (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaksn authored Mar 27, 2024
1 parent 2d5c47e commit f390eb0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackAsTool>true</PackAsTool>
<PackageId>EdFi.BulkLoadClient.Console</PackageId>
<UserSecretsId>8562c1b6-4865-4db2-97dd-b7bad8f54d69</UserSecretsId>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DefineConstants>DEBUG;TRACE</DefineConstants>
Expand All @@ -40,6 +41,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\EdFi.LoadTools\EdFi.LoadTools.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private static async Task Main(string[] args)
.SetBasePath(Directory.GetParent(AppContext.BaseDirectory).FullName)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddCommandLine(args, CommandLineOverrides.SwitchingMapping())
.AddUserSecrets<CommandLineOverrides>()
.Build();

// apply the command line args overrides for boolean values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackAsTool>true</PackAsTool>
<PackageId>EdFi.SmokeTest.Console</PackageId>
<UserSecretsId>5e04e4d3-afef-4845-9dd8-23d0153c2b6f</UserSecretsId>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
Expand Down Expand Up @@ -44,6 +45,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions Utilities/DataLoading/EdFi.SmokeTest.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private static async Task Main(string[] args)
.SetBasePath(Directory.GetParent(AppContext.BaseDirectory).FullName)
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddCommandLine(args, CommandLineOverrides.SwitchingMapping())
.AddUserSecrets<CommandLineOverrides>()
.Build();

await SetOdsEndpoints(configRoot);
Expand Down

0 comments on commit f390eb0

Please sign in to comment.