mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add verbose mode for "formats" verb.
This commit is contained in:
@@ -14,16 +14,37 @@ namespace DiscImageChef.Commands
|
|||||||
plugins.RegisterAllPlugins();
|
plugins.RegisterAllPlugins();
|
||||||
|
|
||||||
Console.WriteLine("Supported images:");
|
Console.WriteLine("Supported images:");
|
||||||
|
if(MainClass.isVerbose)
|
||||||
|
Console.WriteLine("GUID\t\t\t\t\tPlugin");
|
||||||
foreach (KeyValuePair<string, ImagePlugin> kvp in plugins.ImagePluginsList)
|
foreach (KeyValuePair<string, ImagePlugin> kvp in plugins.ImagePluginsList)
|
||||||
Console.WriteLine(kvp.Value.Name);
|
{
|
||||||
|
if(MainClass.isVerbose)
|
||||||
|
Console.WriteLine("{0}\t{1}", kvp.Value.PluginUUID, kvp.Value.Name);
|
||||||
|
else
|
||||||
|
Console.WriteLine(kvp.Value.Name);
|
||||||
|
}
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
Console.WriteLine("Supported filesystems:");
|
Console.WriteLine("Supported filesystems:");
|
||||||
|
if(MainClass.isVerbose)
|
||||||
|
Console.WriteLine("GUID\t\t\t\t\tPlugin");
|
||||||
foreach (KeyValuePair<string, Plugin> kvp in plugins.PluginsList)
|
foreach (KeyValuePair<string, Plugin> kvp in plugins.PluginsList)
|
||||||
Console.WriteLine(kvp.Value.Name);
|
{
|
||||||
|
if(MainClass.isVerbose)
|
||||||
|
Console.WriteLine("{0}\t{1}", kvp.Value.PluginUUID, kvp.Value.Name);
|
||||||
|
else
|
||||||
|
Console.WriteLine(kvp.Value.Name);
|
||||||
|
}
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
Console.WriteLine("Supported partitions:");
|
Console.WriteLine("Supported partitions:");
|
||||||
|
if(MainClass.isVerbose)
|
||||||
|
Console.WriteLine("GUID\t\t\t\t\tPlugin");
|
||||||
foreach (KeyValuePair<string, PartPlugin> kvp in plugins.PartPluginsList)
|
foreach (KeyValuePair<string, PartPlugin> kvp in plugins.PartPluginsList)
|
||||||
Console.WriteLine(kvp.Value.Name);
|
{
|
||||||
|
if(MainClass.isVerbose)
|
||||||
|
Console.WriteLine("{0}\t{1}", kvp.Value.PluginUUID, kvp.Value.Name);
|
||||||
|
else
|
||||||
|
Console.WriteLine(kvp.Value.Name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,6 +106,8 @@ namespace DiscImageChef
|
|||||||
Commands.Verify.doVerify(VerifyOptions);
|
Commands.Verify.doVerify(VerifyOptions);
|
||||||
break;
|
break;
|
||||||
case "formats":
|
case "formats":
|
||||||
|
FormatsSubOptions FormatsOptions = (FormatsSubOptions)invokedVerbInstance;
|
||||||
|
isVerbose = FormatsOptions.Verbose;
|
||||||
Commands.Formats.ListFormats();
|
Commands.Formats.ListFormats();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef
|
|||||||
public string InputFile { get; set; }
|
public string InputFile { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class FormatsSubOptions
|
public class FormatsSubOptions : CommonSubOptions
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user