From deb4a92b4a4440f7fe82dd6e9dd6ddd44ec90ccf Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Wed, 24 Sep 2025 13:58:36 +0200 Subject: [PATCH] Optional [Argument] mixing with flags not supported by ConsoleAppFramework --- .../docs-builder/Commands/Assembler/AssemblerIndexCommand.cs | 4 ++-- src/tooling/docs-builder/Commands/IndexCommand.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tooling/docs-builder/Commands/Assembler/AssemblerIndexCommand.cs b/src/tooling/docs-builder/Commands/Assembler/AssemblerIndexCommand.cs index cef1335e3..9086a0d79 100644 --- a/src/tooling/docs-builder/Commands/Assembler/AssemblerIndexCommand.cs +++ b/src/tooling/docs-builder/Commands/Assembler/AssemblerIndexCommand.cs @@ -25,7 +25,7 @@ ICoreService githubActionsService /// /// Index documentation to Elasticsearch, calls `docs-builder assembler build --exporters elasticsearch`. Exposes more options /// - /// Elasticsearch endpoint, alternatively set env DOCUMENTATION_ELASTIC_URL + /// -es, Elasticsearch endpoint, alternatively set env DOCUMENTATION_ELASTIC_URL /// The --environment used to clone ends up being part of the index name /// Elasticsearch API key, alternatively set env DOCUMENTATION_ELASTIC_APIKEY /// Elasticsearch username (basic auth), alternatively set env DOCUMENTATION_ELASTIC_USERNAME @@ -49,7 +49,7 @@ ICoreService githubActionsService /// [Command("")] public async Task Index( - [Argument] string? endpoint = null, + string? endpoint = null, string? environment = null, string? apiKey = null, string? username = null, diff --git a/src/tooling/docs-builder/Commands/IndexCommand.cs b/src/tooling/docs-builder/Commands/IndexCommand.cs index 739351317..e0ec4dd80 100644 --- a/src/tooling/docs-builder/Commands/IndexCommand.cs +++ b/src/tooling/docs-builder/Commands/IndexCommand.cs @@ -23,7 +23,7 @@ ICoreService githubActionsService /// /// Index a single documentation set to Elasticsearch, calls `docs-builder --exporters elasticsearch`. Exposes more options /// - /// Elasticsearch endpoint, alternatively set env DOCUMENTATION_ELASTIC_URL + /// -es, Elasticsearch endpoint, alternatively set env DOCUMENTATION_ELASTIC_URL /// path to the documentation folder, defaults to pwd. /// Elasticsearch API key, alternatively set env DOCUMENTATION_ELASTIC_APIKEY /// Elasticsearch username (basic auth), alternatively set env DOCUMENTATION_ELASTIC_USERNAME @@ -47,7 +47,7 @@ ICoreService githubActionsService /// [Command("")] public async Task Index( - [Argument] string? endpoint = null, + string? endpoint = null, string? path = null, string? apiKey = null, string? username = null,