-
Tail like utility to watch files
-
Idea is to use websockets to implement continuous file watch/follow solution
- cmd line switches
-f
i.e the file which is to be read-n
number of lines to fetch in one go-w
to watch/follow a file for changes (pending)
- An http server to serve the file contents
- the http server should expose a websocket endpoint, so that if user runs with follow option, the webserver should maintain a continuous connection(ws) to the client and keep on relaying file data to client
- a cli client (using cobra) which will accept user commands and accordingly make request to http server