cargo-scaffold icon indicating copy to clipboard operation
cargo-scaffold copied to clipboard

Scaffold Parameter's default value is not used.

Open gabhijit opened this issue 10 months ago • 0 comments

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.

gabhijit avatar Apr 05 '24 10:04 gabhijit