Rename commands and add aliases.

This commit is contained in:
2020-01-03 18:24:44 +00:00
parent 56e24f1ed9
commit 03573f1cb6
17 changed files with 43 additions and 38 deletions

View File

@@ -38,7 +38,6 @@ namespace DiscImageChef.Commands.Device
{
public DeviceFamily() : base("device", "Commands that talks to devices")
{
AddAlias("d");
AddAlias("dev");
AddCommand(new DeviceInfoCommand());

View File

@@ -54,7 +54,7 @@ namespace DiscImageChef.Commands.Device
{
internal class DeviceReportCommand : Command
{
public DeviceReportCommand() : base("device-report",
public DeviceReportCommand() : base("report",
"Tests the device capabilities and creates an JSON report of them.")
{
AddArgument(new Argument<string>

View File

@@ -38,11 +38,11 @@ using DiscImageChef.Console;
using DiscImageChef.Core;
using DiscImageChef.Devices;
namespace DiscImageChef.Commands
namespace DiscImageChef.Commands.Device
{
internal class ListDevicesCommand : Command
{
public ListDevicesCommand() : base("list-devices", "Lists all connected devices.")
public ListDevicesCommand() : base("list", "Lists all connected devices.")
{
AddArgument(new Argument<string>
{

View File

@@ -52,7 +52,7 @@ namespace DiscImageChef.Commands.Device
{
internal class DeviceInfoCommand : Command
{
public DeviceInfoCommand() : base("device-info", "Gets information about a device.")
public DeviceInfoCommand() : base("info", "Gets information about a device.")
{
Add(new Option(new[]
{