Skip to main content

extract_flags_from_source

Function extract_flags_from_source 

Source
pub fn extract_flags_from_source(
    source: &str,
    path: &Path,
    extra_sdk_patterns: &[(String, usize, String)],
    extra_env_prefixes: &[String],
    config_object_heuristics: bool,
) -> Vec<FlagUse>
Expand description

Extract feature flags from source text with custom configuration.

Higher-level convenience function that handles parsing internally. Used by the CLI flags command for supplementary extraction with user-configured patterns that aren’t applied at parse/cache time.