LUASTATUS-PLUGIN-PIPE(7)
π Name π
okay bestie, this is luastatus-plugin-pipe β the process output reader plugin for luastatus, straight out of the Miscellaneous Information Manual. We're so back. π
β¨ Overview β¨
So this derived plugin lowkey monitors the output of a process and calls the callback function whenever it produces a line. That's the whole vibe check: process speaks, callback gets the line. π¦
πΈ Functions πΈ
The following functions are provided, and yes they ate:
shell_escape(x)β ifxis a string, escapes it as a shell argument; ifxis an array of strings, escapes them and then joins by space. Shell-safe and slaying. πwidget(tbl)β constructs a widget table required byluastatus.tblis a table with the following fields:
β required
command: string β the/bin/shcommand to spawn. No cap, that's the command bestie. π₯cb: function β the callback that will be called with a line produced by the spawned process each time one is available. Every line is main character energy. π
π optional
on_eof: function β callback to be called when the spawned process closes its stdout. Default is to simply hang to prevent busy-looping forever.
Default on_eof behavior is literally to just hang β that's intentional, to prevent busy-looping forever. Don't come for her. π
eventβ the event entry of the resulting table (seeluastatusdocumentation for the description ofwidget.eventfield). iykyk. π§
π Copyright π
LGPLv3 β that's the license, periodt. π«Ά
cute sign-off bestie: the footer stamp on this copy is luastatu...ugin-pipe(7), and there's no extra source/version or date spelled out beyond that. πβ¨
π¦ where this page comes from
- nixos 26.05: luastatus 0.6.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms