arx-0.0.4: Archive execution tool.

System.Posix.ARX

Contents

Synopsis

Interface and implementation of subcommands.

class ARX program input | program -> input whereSource

ARX subprograms process some input to produce a script.

Methods

interpret :: program -> input -> BuilderSource

newtype SHDAT Source

An SHDAT program processes byte streams with the specified chunking to produce a script.

Constructors

SHDAT Word 

Instances

data TMPX Source

A TMPX program archives streams to produce a script that unpacks the file data in a temporary location and runs the command with the attached environment information in that location. The command may be any executable file contents, modulo architectural compatibility. It is written along side the temporary work location, to ensure it does not collide with any files in the archive. The two boolean flags determine when to delete the temporary directory. The first flag determines whether or not to delete successful (exit code zero) runs; the second determines whether or not to delete failed (exit code non-zero) runs.

Constructors

TMPX SHDAT ByteString [(Var, Val)] Bool Bool 

Instances

Creation of environment bindings for TMPX.

data Val Source

Valid shell string values contain any byte but null.

Instances

data Var Source

Valid shell variable names consist of a leading letter or underscore and then any number of letters, underscores or digits.

Instances

Tar archive types and magic detection.

data Tar Source

Handled styles of Tar archive.

Constructors

TAR 
TGZ 
TBZ 

Instances

magic :: ByteString -> Maybe TarSource

Scan a lazy ByteString for file magic.