biegunka-archive-0.2.0.0: Tar/Zip archives support as Source.

Safe HaskellNone

Control.Biegunka.Source.Zip

Contents

Description

Biegunka.Source.Zip - functions to work with .zip archives as sources

Synopsis

Source layer

zip :: String -> FilePath -> Script Actions () -> Script Sources ()Source

Download and extract zip archive from the given url to specified path. Also executes attached script

 zip "https://example.com/archive.zip" "zip/archive" $ do
   register "some/not/so/long/path"
   link "important.file" ".config"
  • download and extract archive from https://example.com/archive.zip to ${HOME}/zip/archive
  • link ${HOME}/zip/archive to ${HOME}/some/not/so/long/path
  • link ${HOME}/zip/archive/important.file to ${HOME}/.config

zip_ :: String -> FilePath -> Script Sources ()Source

Download and extract zip archive from the given url to specified path.

 zip_ "https://example.com/archive.zip" "zip/archive"
  • download and extract archive from https://example.com/archive.zip to ${HOME}/zip/archive