shower / cli

Command line interface for Shower
Other
35 stars 6 forks source link

Smarter PDF export #29

Open pepelsbey opened 5 years ago

pepelsbey commented 5 years ago

Currently the only entry point for CLI is the index.html. In my case I often have multiple versions of my slides:

andersen.html
codefest.html
fwdays.html
yandex.html

It would be good if CLI could do the following:

@nikolay-govorov what do you think?

mrdimidium commented 5 years ago

Hey. Sorry for the long answer.

Why such a hard workflow? Isn't it easier to count all /*.(htm|html) files of the presentation entry points? Then calling shower pdf will just turn all the entry points into PDF file.

pepelsbey commented 5 years ago

When I run shower pdf I want to export a single file, not every HTML file available. There might be a demo file or something else. To be able to print exactly what I need, I’d love to see something like:

$ ls
$ foo.html bar.html
$ shower pdf foo.html 
>> foo.pdf
$ shower pdf
> foo.html
> bar.html ←
>> bar.pdf

shower pdf behavior would be similar to npm run one, where it lists all available options instead of running all of them.

mrdimidium commented 5 years ago

Sounds good, we'll do it