spy 0.6 → 0.7
raw patch · 3 files changed
+9/−7 lines, 3 files
Files
- README.md +4/−0
- spy.cabal +1/−1
- src/Main.hs +4/−6
README.md view
@@ -52,6 +52,10 @@ If the command to be executed does not expect any (additional) arguments the `--notify-only` flag can be used. This will cause spy to execute the command without passing the path as an argument: $> spy run --notify-only "rake test" .+ +To compile Spy for example use:++ $> spy run -n "cabal build" src Installation
spy.cabal view
@@ -1,5 +1,5 @@ name: spy-version: 0.6+version: 0.7 license: BSD3 license-file: LICENSE author: Stefan Saasen
src/Main.hs view
@@ -7,13 +7,11 @@ import Spy.Watcher version :: String-version = "spy v0.6, (C) Stefan Saasen"--hiddenOpts x = x &= help "Set to true if hidden files/directories should be included" &= name "i" &= typ "BOOL"+version = "spy v0.7, (C) Stefan Saasen" watch :: Spy watch = Watch- {hidden = hiddenOpts False+ {hidden = False &= help "Set to true if hidden files/directories should be included" &= name "i" &= typ "BOOL" ,dir = "." &= argPos 0 &= typ "FILE/DIR" ,format = Just plainFormat &= name "f" &= help "Specify the output format ('json', 'plain')" ,glob = Nothing &= args &= typ "GLOB"@@ -23,11 +21,11 @@ run :: Spy run = Run- {hidden = hiddenOpts False+ {hidden = False &= help "Set to true if hidden files/directories should be included" &= name "i" &= typ "BOOL" ,command = def &= argPos 0 &= typ "CMD" ,dir = "." &= argPos 1 &= typ "FILE/DIR" ,glob = Nothing &= args &= typ "GLOB"- ,notifyOnly = False &= name "n" &= name "notify-only" &= typ "BOOL"+ ,notifyOnly = False &= name "n" &= name "notify-only" &= typ "BOOL" &= help "Don't pass the path of the modified file to the command" } &= help "Run a command whenever a file changes"