Closed ebotiab closed 3 weeks ago
this is a good idea~I also think so.I will try on the issue. :)
I can try to create PR on this, if you want
I'm not sure that this really needs to be embedded in pdfly
...
Fur such task, it may be better to combine pdfly cat
with a CSV-parsing command like xsv or csvkit, or simply to write a dedicated Python script.
And if pdfly
starts supporting CSV parsing, it would make sense that it also starts supporting JSON parsing, YAML parsing, etc. This can quickly create feature creep.
Quoting The UNIX Philosophy by Mike Gancarz:
1- Small is beautiful. 2- Make each program do one thing well. ... 9- Make every program a filter.
It could be more convinient in some cases to store the files to concatenate into a file e.g. a csv rather than passing them as arguments in the cat command, for example, if there are a lot of pdfs to merge. For this a possible new command could be: