packages feed

trackit 0.1 → 0.2

raw patch · 3 files changed

+5/−4 lines, 3 files

Files

README.md view
@@ -2,6 +2,8 @@  `trackit` is a command-line tool that listens for changes in a user-supplied directory. Whenever there is a change, a custom command is executed and its standard output is shown live in the terminal. +![](images/trackit.gif)+ ## Examples  Show a live listing of the files in the current directory:
src/ParseANSI.hs view
@@ -5,7 +5,7 @@  -- Reference: <http://ascii-table.com/ansi-escape-sequences.php> -import Data.Monoid ((<>), Endo (..))+import Data.Monoid (Endo (..)) import Data.Text (Text) import qualified Data.Text as Text @@ -21,7 +21,6 @@ onHead f (a:as) = f a : as  esc = "\ESC["-escm = "\ESC[m"  -- | Parse a text that has been preceded by an 'esc' sequence --@@ -79,6 +78,6 @@     fixHead :: Text -> Text     fixHead h = case Text.breakOn esc h of       ("", _) -> h -- Already starts with `esc`-      (h1, _empty) -> escm <> h1+      (h1, _empty) -> Text.cons 'm' h1         -- No `esc` in the string (because `splitOn` makes sure that the         -- separator is either first in the segment or absent)
trackit.cabal view
@@ -1,5 +1,5 @@ name:                trackit-version:             0.1+version:             0.2 synopsis:            A command-line tool for live monitoring description:         @trackit@ is a command-line tool that listens for changes                      in a user-supplied directory. Whenever there is a change,