Skip to content

A question regarding tools that output to stdout (expand/unexpand) #570

Closed Answered by jfly
srfsh asked this question in Help
Discussion options

You must be logged in to vote

The best I've come up with is to utilize these tools through an intermediate script directly embedded in the config file of treefmt using some help from sponge(1).

For the record, this sounds like the correct thing to do. From https://treefmt.com/latest/reference/formatter-spec/:

If the formatter you would like to use doesn't comply with the rules, it's often possible to create a wrapper script that transforms the usage to match the specification.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by srfsh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants