Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign description text to Description property of CommandProperty #491

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading