run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
void run() {
final bool? isInputFilePathParsed =
argResults?.wasParsed("input-file-path");
if (isInputFilePathParsed!) {
final Archiver archiver = Archiver(
inputPath: argResults?["input-file-path"],
outputFilePath: argResults?["output-file-path"],
format: path.extension(argResults?["input-file-path"]));
archiver.decompress();
} else {
stderr.write("Option --input-file-path or -i is mandatory.\n");
}
}