Skip to main content

infer_default_value

Function infer_default_value 

Source
pub fn infer_default_value(question: &SetupQuestion) -> Value
Expand description

Infer a default value for a setup question.

Priority:

  1. Explicit default field from setup.yaml
  2. Extract from help text pattern “(default: VALUE)”
  3. Return empty string