ethanmsl / incarnate

Skeleton Repo Incarnate-er (simple carnation process)
4 stars 0 forks source link

validate prompt inputs #4

Open ethanmsl opened 1 year ago

ethanmsl commented 1 year ago

package name hi I'm a package name is not valid and the python won't run Package_Name will cause the linter to flag in appropriate capitalization

it would be convenient if some validation were performed at input receipt

(granted, not all validation would be possible for all theoretical templating schemes -- but a small number of rules on casing and whitespace would cover the vast majority of cases)

ethanmsl commented 9 months ago

related note:

Use of the prolific ed page's liquid-rs templating system would offer a complementary approach -- filter/piping input through modifier functions (e.g. to swap between cases).

This is also the the same templating engine that cargo generate uses -- increasing the ease of contributing some bit of code from here to there should the near-opportunity arise in the future.