Skip to content

cake-contrib/Cake.7zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

30539f0 Β· Sep 30, 2024
Aug 10, 2022
Sep 30, 2024
Nov 15, 2022
Nov 20, 2023
Aug 10, 2022
Sep 27, 2024
Jan 17, 2024
Jun 12, 2020
Jan 2, 2022
Jun 11, 2020
Dec 2, 2021
Nov 28, 2021
Jun 19, 2020
Sep 2, 2020
Mar 11, 2021
Sep 22, 2020
Jun 11, 2020
Jan 17, 2024
Aug 10, 2022
Aug 10, 2022
Sep 14, 2024
May 7, 2024

Repository files navigation

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