2014-06-16 01:45:04 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using DiscImageChef.ImagePlugins;
|
|
|
|
|
|
using DiscImageChef.PartPlugins;
|
|
|
|
|
|
using DiscImageChef.Plugins;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DiscImageChef.Commands
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class Formats
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void ListFormats()
|
|
|
|
|
|
{
|
|
|
|
|
|
PluginBase plugins = new PluginBase();
|
|
|
|
|
|
plugins.RegisterAllPlugins();
|
|
|
|
|
|
|
2014-06-16 01:51:26 +01:00
|
|
|
|
Console.WriteLine("Supported disc image formats:");
|
2014-06-16 01:50:49 +01:00
|
|
|
|
if(MainClass.isVerbose)
|
|
|
|
|
|
Console.WriteLine("GUID\t\t\t\t\tPlugin");
|
2014-06-16 01:45:04 +01:00
|
|
|
|
foreach (KeyValuePair<string, ImagePlugin> kvp in plugins.ImagePluginsList)
|
2014-06-16 01:50:49 +01:00
|
|
|
|
{
|
|
|
|
|
|
if(MainClass.isVerbose)
|
|
|
|
|
|
Console.WriteLine("{0}\t{1}", kvp.Value.PluginUUID, kvp.Value.Name);
|
|
|
|
|
|
else
|
|
|
|
|
|
Console.WriteLine(kvp.Value.Name);
|
|
|
|
|
|
}
|
2014-06-16 01:45:04 +01:00
|
|
|
|
Console.WriteLine();
|
|
|
|
|
|
Console.WriteLine("Supported filesystems:");
|
2014-06-16 01:50:49 +01:00
|
|
|
|
if(MainClass.isVerbose)
|
|
|
|
|
|
Console.WriteLine("GUID\t\t\t\t\tPlugin");
|
2014-06-16 01:45:04 +01:00
|
|
|
|
foreach (KeyValuePair<string, Plugin> kvp in plugins.PluginsList)
|
2014-06-16 01:50:49 +01:00
|
|
|
|
{
|
|
|
|
|
|
if(MainClass.isVerbose)
|
|
|
|
|
|
Console.WriteLine("{0}\t{1}", kvp.Value.PluginUUID, kvp.Value.Name);
|
|
|
|
|
|
else
|
|
|
|
|
|
Console.WriteLine(kvp.Value.Name);
|
|
|
|
|
|
}
|
2014-06-16 01:45:04 +01:00
|
|
|
|
Console.WriteLine();
|
2014-06-16 01:51:26 +01:00
|
|
|
|
Console.WriteLine("Supported partitioning schemes:");
|
2014-06-16 01:50:49 +01:00
|
|
|
|
if(MainClass.isVerbose)
|
|
|
|
|
|
Console.WriteLine("GUID\t\t\t\t\tPlugin");
|
2014-06-16 01:45:04 +01:00
|
|
|
|
foreach (KeyValuePair<string, PartPlugin> kvp in plugins.PartPluginsList)
|
2014-06-16 01:50:49 +01:00
|
|
|
|
{
|
|
|
|
|
|
if(MainClass.isVerbose)
|
|
|
|
|
|
Console.WriteLine("{0}\t{1}", kvp.Value.PluginUUID, kvp.Value.Name);
|
|
|
|
|
|
else
|
|
|
|
|
|
Console.WriteLine(kvp.Value.Name);
|
|
|
|
|
|
}
|
2014-06-16 01:45:04 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|