From f4a435811ddffe701a4b1e38571be4bd5a2687b1 Mon Sep 17 00:00:00 2001 From: doingnz Date: Thu, 22 Feb 2024 02:05:10 +1300 Subject: [PATCH] Assign description text to Description property of CommandProperty In a few places the description text was assign to the Name property. Change to Description. --- Source/v2/Meadow.Cli/Commands/Current/App/AppBuildCommand.cs | 2 +- Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs | 2 +- Source/v2/Meadow.Cli/Commands/Current/App/AppRunCommand.cs | 2 +- Source/v2/Meadow.Cli/Commands/Current/App/AppTrimCommand.cs | 2 +- .../Commands/Current/Cloud/Package/CloudPackageCreateCommand.cs | 2 +- .../Commands/Current/Firmware/FirmwareDefaultCommand.cs | 2 +- .../Commands/Current/Firmware/FirmwareDeleteCommand.cs | 2 +- .../Commands/Current/Firmware/FirmwareWriteCommand.cs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/v2/Meadow.Cli/Commands/Current/App/AppBuildCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/App/AppBuildCommand.cs index a0c4a3b9..94bf244e 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/App/AppBuildCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/App/AppBuildCommand.cs @@ -12,7 +12,7 @@ public class AppBuildCommand : BaseCommand [CommandOption('c', Description = "The build configuration to compile", IsRequired = false)] public string? Configuration { get; set; } - [CommandParameter(0, Name = "Path to project file", IsRequired = false)] + [CommandParameter(0, Description = "Path to project file", IsRequired = false)] public string? Path { get; init; } public AppBuildCommand(IPackageManager packageManager, ILoggerFactory loggerFactory) diff --git a/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs index 6997d6d1..94bab86e 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/App/AppDeployCommand.cs @@ -9,7 +9,7 @@ public class AppDeployCommand : BaseDeviceCommand { private readonly IPackageManager _packageManager; - [CommandParameter(0, Name = "Path to folder containing the built application", IsRequired = false)] + [CommandParameter(0, Description = "Path to folder containing the built application", IsRequired = false)] public string? Path { get; init; } public AppDeployCommand(IPackageManager packageManager, MeadowConnectionManager connectionManager, ILoggerFactory loggerFactory) diff --git a/Source/v2/Meadow.Cli/Commands/Current/App/AppRunCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/App/AppRunCommand.cs index 6eefbde6..31d0428c 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/App/AppRunCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/App/AppRunCommand.cs @@ -17,7 +17,7 @@ public class AppRunCommand : BaseDeviceCommand [CommandOption('c', Description = "The build configuration to compile", IsRequired = false)] public string? Configuration { get; set; } - [CommandParameter(0, Name = "Path to folder containing the application to build", IsRequired = false)] + [CommandParameter(0, Description = "Path to folder containing the application to build", IsRequired = false)] public string? Path { get; init; } public AppRunCommand(IPackageManager packageManager, MeadowConnectionManager connectionManager, ILoggerFactory loggerFactory) diff --git a/Source/v2/Meadow.Cli/Commands/Current/App/AppTrimCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/App/AppTrimCommand.cs index 74148efc..77fd823c 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/App/AppTrimCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/App/AppTrimCommand.cs @@ -12,7 +12,7 @@ public class AppTrimCommand : BaseCommand [CommandOption('c', Description = "The build configuration to trim", IsRequired = false)] public string? Configuration { get; init; } - [CommandParameter(0, Name = "Path to project file", IsRequired = false)] + [CommandParameter(0, Description = "Path to project file", IsRequired = false)] public string? Path { get; init; } public AppTrimCommand(IPackageManager packageManager, ILoggerFactory loggerFactory) diff --git a/Source/v2/Meadow.Cli/Commands/Current/Cloud/Package/CloudPackageCreateCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/Cloud/Package/CloudPackageCreateCommand.cs index d6af472b..192744d8 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/Cloud/Package/CloudPackageCreateCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/Cloud/Package/CloudPackageCreateCommand.cs @@ -10,7 +10,7 @@ namespace Meadow.CLI.Commands.DeviceManagement; [Command("cloud package create", Description = "Create a Meadow Package (MPAK)")] public class CloudPackageCreateCommand : BaseCloudCommand { - [CommandParameter(0, Name = "Path to project file", IsRequired = false)] + [CommandParameter(0, Description = "Path to project file", IsRequired = false)] public string? ProjectPath { get; set; } [CommandOption('c', Description = "The build configuration to compile", IsRequired = false)] diff --git a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDefaultCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDefaultCommand.cs index 8fb3c02e..31372b1b 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDefaultCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDefaultCommand.cs @@ -11,7 +11,7 @@ public FirmwareDefaultCommand(FileManager fileManager, ISettingsManager settings : base(fileManager, settingsManager, loggerFactory) { } - [CommandParameter(0, Name = "Version number to use as default", IsRequired = false)] + [CommandParameter(0, Description = "Version number to use as default", IsRequired = false)] public string? Version { get; init; } protected override async ValueTask ExecuteCommand() diff --git a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDeleteCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDeleteCommand.cs index 32188417..145ade65 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDeleteCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareDeleteCommand.cs @@ -11,7 +11,7 @@ public FirmwareDeleteCommand(FileManager fileManager, ISettingsManager settingsM : base(fileManager, settingsManager, loggerFactory) { } - [CommandParameter(0, Name = "Version number to delete", IsRequired = true)] + [CommandParameter(0, Description = "Version number to delete", IsRequired = true)] public string Version { get; init; } = default!; protected override async ValueTask ExecuteCommand() diff --git a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareWriteCommand.cs b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareWriteCommand.cs index 00af54a6..91a584b4 100644 --- a/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareWriteCommand.cs +++ b/Source/v2/Meadow.Cli/Commands/Current/Firmware/FirmwareWriteCommand.cs @@ -26,7 +26,7 @@ public class FirmwareWriteCommand : BaseDeviceCommand [CommandOption("file", 'f', IsRequired = false, Description = "Send only the specified file")] public string? IndividualFile { get; set; } - [CommandParameter(0, Name = "Files to write", IsRequired = false)] + [CommandParameter(0, Description = "Files to write", IsRequired = false)] public FirmwareType[]? FirmwareFileTypes { get; set; } = default!; private FileManager FileManager { get; }