Skip to content

Commit d20f071

Browse files
committed
On workspace init, load secrets
1 parent d59bacc commit d20f071

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands/workspaces/OnInitWorkspacesCommand.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Spectre.Console;
33
using Spectre.Console.Cli;
44
using WebDev.Tool.Helper.Proxy;
5+
using WebDev.Tool.Helper.Secrets;
56
using WebDev.Tool.Helper.workspaces;
67

78
namespace WebDev.Tool.Commands.workspaces;
@@ -38,6 +39,10 @@ public override int Execute(CommandContext context, Settings settings)
3839
return 1;
3940
}
4041

42+
// Load secrets
43+
SecretsLoader.LoadEnvVarSecrets();
44+
SecretsLoader.LoadFileSecrets();
45+
4146
return !WorkspaceHelper.PrepareWorkspaces(settings.Debug) ? 1 : 0;
4247
}
4348
}

0 commit comments

Comments
 (0)