5 ms·
The code base seems like a good reference as a small Python project. My fav option in this class of apps: https://lnav.org/ https://lnav.org/ It lets you use j
by avtar 3y ago
The code base seems like a good reference as a small Python project.
My fav option in this class of apps: https://lnav.org/ https://lnav.org/ It lets you use journalctl with pipes as requested here: https://github.com/Textualize/toolong/issues/4 https://github.com/Textualize/toolong/issues/4
- maxyurk 3y agolnav is great
- SushiHippie 3y agoMind elaborating why this would be a good reference? Not saying it isn't, just want to understand why you think so
- avtar 3y agoHi there! I'm mostly AFK for a couple days so replies might be delayed, but some notes: - System tool niche that I find interesting so it's nice to see a fairly complete and yet relatively small project - Textual seems to be their largest dependency, but other than that the project seems self-contained and relies on the standard library - With some exceptions, the majority of methods are short and easy to parse - Typing support :)
- SushiHippie 3y agoMakes total sense, I think I was a bit thrown of after the first glance because there are so many classes and files [0] and it reads a bit like Java code. But after a second glance it looks very well written compared to many other python projects, which sometimes read like a 5000 line bash script. And I can't argue against your arguments, especially using "minimal" dependencies and using typing. Typing often helps for autocompletion and understanding what a variable/function "means", which makes it [1] easier to start hacking on it. [0] not necessarily bad, just wasn't what I would expect to be a small reference project [1] not always, sometimes types can be too verbose and start messing with your brain ;)
- sandebert 3y agoPlus it's possible to download lnav as a statically linked binary, which is very nice. (Would have been even better if it was in the official repos.) I'm not interested in installing things using yet another package manager, like pip or the like.
- gregopet 3y agoI donated to lnav, it's just soo good!