packages feed

pub 2.0.0 → 2.0.1

raw patch · 2 files changed

+20/−5 lines, 2 files

Files

README.org view
@@ -1,8 +1,18 @@ * Welcome!-  This CLI utility pipes from stdin to a redis pub/sub channel.+  =Pub= builds two utilities for piping to and from a redis pub/sub+  channel and stdout/stdin.  ** Install-   You can either get a binary or compile it.+   Right now, you gotta compile it. -** Example-   =tail -F /some/log/file | grep "logfileProperty" | pub -c "logline"=+** Examples++*** Using pub+    #+BEGIN_SRC+    tail -F /some/log/file | grep "logfileProperty" | pub "logline"+    #+END_SRC++*** Using sub+    #+BEGIN_SRC+    sub "logline" | grep "somethingspecific"+    #+END_SRC
pub.cabal view
@@ -1,5 +1,5 @@ Name:                   pub-Version:                2.0.0+Version:                2.0.1 Author:                 Parnell Springmeyer <parnell@digitalmentat.com> Maintainer:             Parnell Springmeyer <parnell@digitalmentat.com> License:                BSD3@@ -17,6 +17,11 @@   do something different with each incoming log line:   .   > tail -F /var/log/somelogfile.log | grep "tracker.gps.parsed" | pub loglines+  .+  It also comes with a utility named `sub` for piping from a Redis+  pub/sub channel to stdout:+  .+  > sub loglines | grep "somemsg"  Cabal-Version:          >= 1.10 Build-Type:             Simple