Commando-1.0.0.4: Watch some files; Rerun a command

Safe HaskellNone

System.Commando

Description

A library providing an interface to generate a lazy stream of command results from events occurring in a directory.

Synopsis

Documentation

data Options Source

Options used to configure the behavior of Commando

Constructors

Options 

Fields

command :: String

The commando to run

quiet :: Bool

Silence any help

consumer :: Bool

Command accepts input as an argument

stdin :: Bool

Command accepts input on STDIN

persist :: Bool

Command remains running and new events are sent to its STDIN

display :: Event -> String

Display show function used to translate events to strings

directory :: FilePath

The directory listened to - Default is the current directory.

Instances

options :: Parser OptionsSource

An optparse-applicative parser for command-line options.

commando :: Options -> IO [String]Source

The main listening loop.