markcat icon indicating copy to clipboard operation
markcat copied to clipboard

Allow stdin and piping as input

Open nkakouros opened this issue 5 years ago • 1 comments

I have a tool that outputs some markdown. I would like to pipe that markdown to markcat so that it is beautifully rendered. But I couldn't do that.

mytool | markcat

results in an error:

File doesn't exist

and an exit code of 1.

I also tried to use markcat <<< "$(mytool)" but that failed in a similar way.

nkakouros avatar Apr 16 '19 21:04 nkakouros

That's because currently markcat only supports reading from files.

I'll change the title of the issue and make it a requested feature, you can contribute by changing this file and making a pull request if you wish.

BubuAnabelas avatar Apr 17 '19 13:04 BubuAnabelas