Function confget::format::filter_vars

source ·
pub fn filter_vars(
    config: &Config,
    data: &FileData,
    section: &str
) -> Result<Vec<FormatOutput>, ConfgetError>
Expand description

Select only the variables requested by the configuration.

This function is mainly used by the confget command-line tool. It examines the Config object and returns the variables that have been selected by its settings (varname, list_all, match_var_names, etc.) from the appropriate sections (section, section_override, etc.).

Errors

Invalid fnmatch/glob or regex pattern specified.