Fix visibility of command invoke method.

This commit is contained in:
2020-01-02 04:18:55 +00:00
parent 758d4dd364
commit b5ea3d681a
27 changed files with 43 additions and 43 deletions

View File

@@ -77,10 +77,10 @@ namespace DiscImageChef.Commands
Arity = ArgumentArity.ExactlyOne, Description = "Disc image path", Name = "image-path" Arity = ArgumentArity.ExactlyOne, Description = "Disc image path", Name = "image-path"
}); });
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(typeof(AnalyzeCommand).GetMethod(nameof(Invoke)));
} }
int Invoke(bool verbose, bool debug, string encoding, bool filesystems, bool partitions, string imagePath) public static int Invoke(bool verbose, bool debug, string encoding, bool filesystems, bool partitions, string imagePath)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -67,7 +67,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, int blockSize, int bufferSize) public static int Invoke(bool debug, bool verbose, int blockSize, int bufferSize)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -153,7 +153,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, bool adler32, bool crc16, bool crc32, bool crc64, bool fletcher16, public static int Invoke(bool debug, bool verbose, bool adler32, bool crc16, bool crc32, bool crc64, bool fletcher16,
bool fletcher32, bool md5, bool sha1, bool sha256, bool sha384, bool sha512, bool spamSum, bool fletcher32, bool md5, bool sha1, bool sha256, bool sha384, bool sha512, bool spamSum,
string imagePath, bool separatedTracks, bool wholeDisc) string imagePath, bool separatedTracks, bool wholeDisc)
{ {

View File

@@ -62,7 +62,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string imagePath1, string imagePath2) public static int Invoke(bool debug, bool verbose, string imagePath1, string imagePath2)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -53,7 +53,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
int Invoke(bool debug, bool verbose) public int Invoke(bool debug, bool verbose)
{ {
if(!_autoCall) if(!_autoCall)
{ {

View File

@@ -190,7 +190,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool verbose, bool debug, string cicmXml, string comments, int count, string creator, public static int Invoke(bool verbose, bool debug, string cicmXml, string comments, int count, string creator,
string driveFirmwareRevision, string driveManufacturer, string driveModel, string driveFirmwareRevision, string driveManufacturer, string driveModel,
string driveSerialNumber, bool force, string inputPath, int lastMediaSequence, string driveSerialNumber, bool force, string inputPath, int lastMediaSequence,
string mediaBarcode, string mediaManufacturer, string mediaModel, string mediaPartNumber, string mediaBarcode, string mediaManufacturer, string mediaModel, string mediaPartNumber,

View File

@@ -93,7 +93,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, uint blockSize, string encodingName, string imagePath, bool tape) public static int Invoke(bool debug, bool verbose, uint blockSize, string encodingName, string imagePath, bool tape)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -87,7 +87,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool verbose, bool debug, bool diskTags, string imagePath, string length, bool sectorTags, public static int Invoke(bool verbose, bool debug, bool diskTags, string imagePath, string length, bool sectorTags,
ulong startSector) ulong startSector)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -66,7 +66,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string devicePath, string outputPrefix) public static int Invoke(bool debug, bool verbose, string devicePath, string outputPrefix)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -66,7 +66,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string devicePath) public static int Invoke(bool debug, bool verbose, string devicePath)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -178,7 +178,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string cicmXml, string devicePath, bool resume, string encoding, public static int Invoke(bool debug, bool verbose, string cicmXml, string devicePath, bool resume, string encoding,
bool firstTrackPregap, bool fixOffset, bool force, bool noMetadata, bool noTrim, bool firstTrackPregap, bool fixOffset, bool force, bool noMetadata, bool noTrim,
string outputPath, string options, bool persistent, ushort retryPasses, int skip, string outputPath, string options, bool persistent, ushort retryPasses, int skip,
int speed, bool stopOnError, string format, string subchannel) int speed, bool stopOnError, string format, string subchannel)

View File

@@ -76,7 +76,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, bool duplicatedSectors, string imagePath, bool separatedTracks, public static int Invoke(bool debug, bool verbose, bool duplicatedSectors, string imagePath, bool separatedTracks,
bool wholeDisc) bool wholeDisc)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -97,7 +97,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string encoding, bool xattrs, string imagePath, string @namespace, public static int Invoke(bool debug, bool verbose, string encoding, bool xattrs, string imagePath, string @namespace,
string outputDir, string options) string outputDir, string options)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -49,7 +49,7 @@ namespace DiscImageChef.Commands
"Lists all supported disc images, partition schemes and file systems.") => "Lists all supported disc images, partition schemes and file systems.") =>
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
static int Invoke(bool verbose, bool debug) public static int Invoke(bool verbose, bool debug)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -54,7 +54,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string imagePath) public static int Invoke(bool debug, bool verbose, string imagePath)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -52,7 +52,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string dicRemoteHost) public static int Invoke(bool debug, bool verbose, string dicRemoteHost)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -46,7 +46,7 @@ namespace DiscImageChef.Commands
public ListEncodingsCommand() : base("list-encodings", "Lists all supported text encodings and code pages.") => public ListEncodingsCommand() : base("list-encodings", "Lists all supported text encodings and code pages.") =>
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
static int Invoke(bool debug, bool verbose) public static int Invoke(bool debug, bool verbose)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -48,7 +48,7 @@ namespace DiscImageChef.Commands
"Lists all namespaces supported by read-only filesystems.") => "Lists all namespaces supported by read-only filesystems.") =>
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
static int Invoke(bool debug, bool verbose) public static int Invoke(bool debug, bool verbose)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -49,7 +49,7 @@ namespace DiscImageChef.Commands
"Lists all options supported by read-only filesystems and writable media images.") => "Lists all options supported by read-only filesystems and writable media images.") =>
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
static int Invoke(bool debug, bool verbose) public static int Invoke(bool debug, bool verbose)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -89,7 +89,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string encoding, string imagePath, bool longFormat, public static int Invoke(bool debug, bool verbose, string encoding, string imagePath, bool longFormat,
string @namespace, string options) string @namespace, string options)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -74,7 +74,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string devicePath, string outputPrefix) public static int Invoke(bool debug, bool verbose, string devicePath, string outputPrefix)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -68,7 +68,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string devicePath, string ibgLog, string mhddLog) public static int Invoke(bool debug, bool verbose, string devicePath, string ibgLog, string mhddLog)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -84,7 +84,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string imagePath, ulong length, bool longSectors, ulong startSector, public static int Invoke(bool debug, bool verbose, string imagePath, ulong length, bool longSectors, ulong startSector,
ushort widthBytes) ushort widthBytes)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -54,7 +54,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string host) public static int Invoke(bool debug, bool verbose, string host)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -45,7 +45,7 @@ namespace DiscImageChef.Commands
public StatisticsCommand() : base("stats", "Shows statistics.") => public StatisticsCommand() : base("stats", "Shows statistics.") =>
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
static int Invoke(bool debug, bool verbose) public static int Invoke(bool debug, bool verbose)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();

View File

@@ -49,7 +49,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
int Invoke(bool debug, bool verbose) public int Invoke(bool debug, bool verbose)
{ {
if(_masterDbUpdate) if(_masterDbUpdate)
return(int)ErrorNumber.NoError; return(int)ErrorNumber.NoError;

View File

@@ -71,7 +71,7 @@ namespace DiscImageChef.Commands
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke))); Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
} }
static int Invoke(bool debug, bool verbose, string imagePath, bool verifyDisc = true, bool verifySectors = true) public static int Invoke(bool debug, bool verbose, string imagePath, bool verifyDisc = true, bool verifySectors = true)
{ {
MainClass.PrintCopyright(); MainClass.PrintCopyright();