iomentum / cargo-scaffold

cargo scaffold lets you scaffold and generate projects described in a simple TOML file
MIT License
57 stars 12 forks source link

Allow deriving of parameters before templating #15

Closed BrynCooke closed 2 years ago

BrynCooke commented 2 years ago

For the templates I'm going to have to have Pascal and snake case versions of the name.

What I'd like is to ask the questions of the user and then get a callback so that I can insert some more parameters. Maybe an extra thing that can be set in Opts.

opts.populate_parameters(|params| {
// derive some params here and insert them in the map
})
bnjjj commented 2 years ago

Fixed and published in 0.6.0