Skip to content

Commit

Permalink
Assign description text to Description property of CommandProperty
Browse files Browse the repository at this point in the history
In a few places the description text was assign to the Name property. Change to Description.
  • Loading branch information
doingnz committed Feb 21, 2024
1 parent fd8b53c commit f4a4358
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AppBuildCommand : BaseCommand<AppBuildCommand>
[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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class AppDeployCommand : BaseDeviceCommand<AppDeployCommand>
{
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)
Expand Down
2 changes: 1 addition & 1 deletion Source/v2/Meadow.Cli/Commands/Current/App/AppRunCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class AppRunCommand : BaseDeviceCommand<AppRunCommand>
[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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AppTrimCommand : BaseCommand<AppTrimCommand>
[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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Meadow.CLI.Commands.DeviceManagement;
[Command("cloud package create", Description = "Create a Meadow Package (MPAK)")]
public class CloudPackageCreateCommand : BaseCloudCommand<CloudPackageCreateCommand>
{
[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)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class FirmwareWriteCommand : BaseDeviceCommand<FirmwareWriteCommand>
[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; }
Expand Down

0 comments on commit f4a4358

Please sign in to comment.