cargo-scaffold
cargo-scaffold copied to clipboard
Scaffold Parameter's default value is not used.
The Scaffold parameter struct Parameter
has an optional default
value. When this value is given this needs to be honored.
For instance for a 'select' type parameter, this is set (to value at index 0), but this can be set for other type of parameters as well - like string, integer etc.
For this we can use something like dialoguer::Input::default
.
Currently setting default
value on a parameter has no effect as one has to enter the value always.