spy 0.13 → 0.14
raw patch · 2 files changed
+9/−9 lines, 2 files
Files
- spy.cabal +1/−1
- src/Main.hs +8/−8
spy.cabal view
@@ -1,5 +1,5 @@ name: spy-version: 0.13+version: 0.14 license: BSD3 license-file: LICENSE author: Stefan Saasen
src/Main.hs view
@@ -7,25 +7,25 @@ import System.FilePath (addTrailingPathSeparator) version :: String-version = "spy v0.13, (C) Stefan Saasen"+version = "spy v0.14, (C) Stefan Saasen" watch :: Spy watch = Watch- {hidden = False &= help "Set to true if hidden files/directories should be included" &= name "i" &= typ "BOOL"+ {hidden = False &= name "i" &= name "hidden" &= typ "BOOL" &= help "Set to true if hidden files/directories should be included" ,dir = "." &= argPos 0 &= typ "FILE/DIR" ,format = Just plainFormat &= name "f" &= help "Specify the output format ('json', 'plain', 'color')"- ,glob = Nothing &= args &= typ "GLOB"+ ,glob = Nothing &= args &= typ "GLOB" } &= help "Watch a directory (or file) for file changes" &= auto run :: Spy run = Run- {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" &= help "Don't pass the path of the modified file to the command"+ {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" &= help "Don't pass the path of the modified file to the command"+ ,hidden = False &= explicit &= name "i" &= name "hidden" &= typ "BOOL" &= help "Set to true if hidden files/directories should be included" } &= help "Run a command whenever a file changes"