diff textshaper/main.py @ 3:925a7959cd0b

stub
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 23 Sep 2013 00:04:00 -0700
parents 53cfd6e1ad0f
children 26bb5e99f76c
line wrap: on
line diff
--- a/textshaper/main.py	Sat Aug 10 22:08:26 2013 -0700
+++ b/textshaper/main.py	Mon Sep 23 00:04:00 2013 -0700
@@ -9,6 +9,7 @@
 import os
 import subprocess
 import sys
+import time
 
 def add_options(parser):
     """add options to the OptionParser instance"""
@@ -27,6 +28,15 @@
     parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter())
     options, args = parser.parse_args(args)
 
+    # read from stdin
+    content = sys.stdin.read()
+
+    # print formatted content
+    print content
+
+    while True:
+        time.sleep(1) # XXX
+
 if __name__ == '__main__':
   main()