From 0a1a6736a77acf048dd187bbb0296b867b35d465 Mon Sep 17 00:00:00 2001 From: Florian Rohrer Date: Mon, 8 Apr 2024 16:46:22 +0200 Subject: [PATCH] fix incorrect command name in docs and error text (#164) in #137 the command has been renamed, however some strings where not properly updated --- docs/pages/variables/azure-keyvault.mdx | 2 +- .../Confix.Library/Middlewares/Project/ValidationMiddleware.cs | 2 +- .../Confix.Tool.Tests/Middlewares/ValidationMiddlewareTests.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/variables/azure-keyvault.mdx b/docs/pages/variables/azure-keyvault.mdx index 9e706f4..d446c25 100644 --- a/docs/pages/variables/azure-keyvault.mdx +++ b/docs/pages/variables/azure-keyvault.mdx @@ -40,7 +40,7 @@ The Authenticated user requires the following Secret permissions: | Action | Required Permission | | :------------------ | ------------------- | -| confix reload | `list` | +| confix restore | `list` | | confix build | `get` | | confix variable set | `set` | | confix variable get | `get` | diff --git a/src/Confix.Tool/src/Confix.Library/Middlewares/Project/ValidationMiddleware.cs b/src/Confix.Tool/src/Confix.Library/Middlewares/Project/ValidationMiddleware.cs index bdb756d..2034ae0 100644 --- a/src/Confix.Tool/src/Confix.Library/Middlewares/Project/ValidationMiddleware.cs +++ b/src/Confix.Tool/src/Confix.Library/Middlewares/Project/ValidationMiddleware.cs @@ -165,7 +165,7 @@ public static JsonSchema GetSchema( { throw new ExitException( $"The schema for the project '{project.Name}' could not be found. " + - $"Call 'confix reload' to generate the schema."); + $"Call 'confix restore' to generate the schema."); } return schema; diff --git a/src/Confix.Tool/test/Confix.Tool.Tests/Middlewares/ValidationMiddlewareTests.cs b/src/Confix.Tool/test/Confix.Tool.Tests/Middlewares/ValidationMiddlewareTests.cs index 378b5ba..0c16025 100644 --- a/src/Confix.Tool/test/Confix.Tool.Tests/Middlewares/ValidationMiddlewareTests.cs +++ b/src/Confix.Tool/test/Confix.Tool.Tests/Middlewares/ValidationMiddlewareTests.cs @@ -125,7 +125,7 @@ public async Task Should_ReturnEarly_When_NoSchemaFound() // var exitException = Assert.IsType(ex); Assert.Equal( - "The schema for the project '__Default' could not be found. Call 'confix reload' to generate the schema.", + "The schema for the project '__Default' could not be found. Call 'confix restore' to generate the schema.", exitException.Message); }