just icon indicating copy to clipboard operation
just copied to clipboard

Feature Request - fmt to read from stdin and write to stdout without touching file on disk

Open peterhoeg opened this issue 2 years ago • 5 comments

Many of the various editors formatting plugins expect data to flow via stdin/stdout rather than touching the file directly. It would be great if just --fmt could do that too.

peterhoeg avatar Apr 20 '23 06:04 peterhoeg

just --dump will output the formatted version of the current justfile to stdout. This could probably be documented better though.

neunenak avatar May 19 '23 02:05 neunenak

Thanks for that - the problem with --dump' is that it includes !include'’d files as outlined in #1585 making it useless for this purpose.

peterhoeg avatar May 19 '23 02:05 peterhoeg

+1 for this! I wanted to set up the custom local formatters vscode plugin but was unable to do so because there is no way to read from stdin.

FelixZY avatar Jul 13 '24 18:07 FelixZY

Would this be covered by https://github.com/casey/just/pull/1933 ?

laniakea64 avatar Jul 13 '24 20:07 laniakea64

@laniakea64 yes, looks like it 👍

FelixZY avatar Jul 14 '24 17:07 FelixZY