use-formatter plugin #326

Open
opened 2024-05-18 11:30:56 +00:00 by mangoiv · 1 comment

I want to propose a plugin that I'll call use-formatter that allows to intercept the output of nix before outputting to std{out,err}. This would make using things like nom more convenient.

The good thing about this is that it wouldn't change anything for users who don't use this.

Another thing that would be possible is having some special environment variable like e.g. NIX_FORMATTER_EXECUTABLE that the user can set to link to some formatting plugin.

Thank you for considering this!

I want to propose a plugin that I'll call `use-formatter` that allows to intercept the output of nix before outputting to std{out,err}. This would make using things like `nom` more convenient. The good thing about this is that it wouldn't change anything for users who don't use this. Another thing that would be possible is having some special environment variable like e.g. `NIX_FORMATTER_EXECUTABLE` that the user can set to link to some formatting plugin. Thank you for considering this!
Owner

I feel like the safer way to do this is to just use shell aliases tbh, my perception is that there are an unreasonable number of edge cases in this approach. But you could, say, write a plugin that adds a new log-format that dumps it into nom if you wanted this.

I feel like the safer way to do this is to just use shell aliases tbh, my perception is that there are an unreasonable number of edge cases in this approach. But you could, say, write a plugin that adds a new log-format that dumps it into nom if you wanted this.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#326
No description provided.