From 3b919b67fea8469929ee9285d4578cb130b2a6f6 Mon Sep 17 00:00:00 2001 From: Alexander Zekelin Date: Thu, 2 Jul 2026 13:08:16 +0200 Subject: [PATCH] refactor: use --record-id flag for record file upload/download (#86) --- .../Data/Record/EnvDataRecordDownloadFileCliCommand.cs | 5 ++++- .../Data/Record/EnvDataRecordUploadFileCliCommand.cs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs index aa341793..c3a113a8 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordDownloadFileCliCommand.cs @@ -23,8 +23,11 @@ public class EnvDataRecordDownloadFileCliCommand : ProfiledCliCommand [CliOption(Name = "--entity", Description = "Entity logical name (e.g. fin_mytable).", Required = true)] public string Entity { get; set; } = null!; - [CliArgument( + [CliOption( + Name = "--record-id", + Aliases = ["--record"], Description = "The GUID of the record containing the file.", + Required = true, ValidationPattern = CliValidation.GuidPattern, ValidationMessage = CliValidation.GuidValidationMessage)] public required Guid RecordId { get; set; } diff --git a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs index 6dbde44c..8a7a3579 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUploadFileCliCommand.cs @@ -23,8 +23,11 @@ public class EnvDataRecordUploadFileCliCommand : StagedCliCommand [CliOption(Name = "--entity", Description = "Entity logical name (e.g. fin_mytable).", Required = true)] public string Entity { get; set; } = null!; - [CliArgument( + [CliOption( + Name = "--record-id", + Aliases = ["--record"], Description = "The GUID of the record to upload the file to.", + Required = true, ValidationPattern = CliValidation.GuidPattern, ValidationMessage = CliValidation.GuidValidationMessage)] public required Guid RecordId { get; set; }