DEV Community

Discussion on: A whole new developer ecosystem: CakeCutter 🍰

Collapse
 
yxsh profile image
Yash

Here are some features that we currently have in mind. feel free to share your own and give feedback about these

Extensions

Extensions will be a list of other published cakes or maybe even local cakes.

[metadata]
name = "..."
description = "..."
exts = ["readme","license"]
Enter fullscreen mode Exit fullscreen mode

these exts will be run before the actual cake. So you don't have to write extra code. and ask the questions.

Data Gatherers

Data gatherers are kinda like questions but they are not asked. They are commands which runs to gather data. like suppose you wanted to get the user's git username you can run git config --get user.name :-

[gatherers]
id-of-gatherer = "git config --get user.name"
Enter fullscreen mode Exit fullscreen mode

Before creating the template these commands will be run and there output will be saved. and u can use them just like questions

Collapse
 
fjones profile image
FJones

How are you sandboxing the commands? Seeing as how we've had a variety of install-script-based attacks on the npm platform lately.

Collapse
 
yxsh profile image
Yash • Edited

if u have an idea please suggest!

Collapse
 
yxsh profile image
Yash • Edited

aahh you u can run anything rn

maybe if we list the commands that will be ran, in the cake page...