shower / cli

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

Add flag `--yes` from `create` task, which will select all default parameters #33

Closed mrdimidium closed 5 years ago

kostyabushuev commented 5 years ago

hello i would like to try to implement this feature, but i have two question What parameters are called by default? Why we cannot use '--default' flag instead of '--all'

mrdimidium commented 5 years ago

Hey. Thank you for wanting to help.

Now the create command at startup shows a dialog box with a suggestion to choose the aspect ratio and theme. These parameters are likely to become more.

Since the parameters are chosen for the most common cases, you can almost always just create a presentation. To do this, it is proposed to add the flag --yes (with aliases -y), which will simply answer all questions by default.

The flag is called --yes because its semantic meaning is to answer Yesto all questions. So, for example, behave npm, yarn and eslint on the command init.