Commits

Jason R. Coombs committed afd8182

Adding a console entry point for web-tail

Comments (0)

Files changed (3)

 Changes
 -------
 
+1.7
+~~~
+
+* Added web-tail command, which "tails" a file, serving the content over
+  http to multiple clients (requires CherryPy).
+
 1.6
 ~~~
 

jaraco/net/tail.py

 	def __hash__(self):
 		return hash(id(self))
 
-if __name__ == '__main__':
+def handle_command_line():
 	TailTracker(cherrypy.engine).subscribe()
 	cherrypy.quickstart(TailedFileServer(sys.argv[1]))
+
+if __name__ == '__main__':
+	handle_command_line()
 			'http-headers = jaraco.net.http:headers',
 			'build-dir-index = jaraco.net.site:make_index_cmd',
 			'content-type-reporter = jaraco.net.http.content:ContentTypeReporter.run',
+			'web-tail = jaraco.net.tail:handle_command_line',
 			],
 	},
 	install_requires=[