Summary
Runs 7zip, using a fluent builder for configuration.
For more examples see the different builders for the ICommand
.
Syntax
[CakeMethodAlias]
public static void SevenZip(this ICakeContext context, Action<CommandBuilder> action)
Examples
Task("ZipIt")
.Does(() =>
{
SevenZip(m => m
.InAddMode()
.WithArchive(File("path/to/file.zip"))
.WithFiles(File("a.txt"))
.WithFiles(File("b.txt"))
.WithVolume(1, VolumeUnit.Gigabytes));
});
Task("UnzipIt")
.Does(() =>
{
SevenZip(m => m
.InExtractMode()
.WithArchive(File("path/to/file.zip"))
.WithArchiveType(SwitchArchiveType.Zip)
.WithOutputDirectory("some/other/directory"));
});
Attributes
Type |
Description |
CakeMethodAlias |
|
Parameters
Return Value
See Also