2014-07-03 18:33:12 +01:00
|
|
|
|
/***************************************************************************
|
|
|
|
|
|
The Disc Image Chef
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
Filename : Formats.cs
|
|
|
|
|
|
Version : 1.0
|
|
|
|
|
|
Author(s) : Natalia Portillo
|
|
|
|
|
|
|
|
|
|
|
|
Component : Verbs.
|
|
|
|
|
|
|
|
|
|
|
|
Revision : $Revision$
|
|
|
|
|
|
Last change by : $Author$
|
|
|
|
|
|
Date : $Date$
|
|
|
|
|
|
|
|
|
|
|
|
--[ Description ] ----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
Implements the 'formats' verb.
|
|
|
|
|
|
|
|
|
|
|
|
--[ License ] --------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
|
it under the terms of the GNU General Public License as
|
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
Copyright (C) 2011-2014 Claunia.com
|
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
//$Id$
|
|
|
|
|
|
using System;
|
2014-06-16 01:45:04 +01:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|