Skip to content

Latest commit

 

History

History
123 lines (91 loc) · 4.77 KB

README.md

File metadata and controls

123 lines (91 loc) · 4.77 KB

Cake.7zip

standard-readme compliant Contributor Covenant Build Codecov Report NuGet package All Contributors

Makes 7zip available as a tool in cake

Table of Contents

Install

#tool nuget:?package=7-Zip.CommandLine
#addin nuget:?package=Cake.7zip

Usage

See also the local documentation and api

Adding files

#tool nuget:?package=7-Zip.CommandLine
#addin nuget:?package=Cake.7zip

SevenZip(s => s
  .InAddMode()
  .WithArchive(File("fluent.zip"))
  .WithArchiveType(SwitchArchiveType.Zip)
  .WithFiles(File("a.txt"), File("b.txt"))
  .WithVolume(700, VolumeUnit.Megabytes)
  .WithCompressionMethodLevel(9));

Extracting files

#tool nuget:?package=7-Zip.CommandLine
#addin nuget:?package=Cake.7zip

SevenZip(s => s
  .InExtractMode()
  .WithArchive(File("path/to/file.zip"))
  .WithArchiveType(SwitchArchiveType.Zip)
  .WithOutputDirectory("some/other/directory"));

Discussion

If you have questions, search for an existing one, or create a new discussion on the Cake GitHub repository, using the extension-q-a category.

Join in the discussion on the Cake repository

Maintainer

Nils Andresen @nils-a

Contributing

Cake.7zip follows the Contributor Covenant Code of Conduct.

We accept Pull Requests.

Small note: If editing the Readme, please conform to the standard-readme specification.

This project follows the all-contributors specification. Contributions of any kind welcome!

Contributors

Thanks goes to these wonderful people (emoji key):

Nils Andresen
Nils Andresen

💻 📖
DiDoHH
DiDoHH

📖
Heiko Stehli
Heiko Stehli

💻

License

MIT License © Nils Andresen