src/lib/config

    Dark Mode
Search:
Group by:
  Source   Edit

Methods for finding and parsing sieb rules from YAML.

Types

Config = object
  filter* {.defaultVal: @[].}: seq[seq[string]]
  early_rules* {.defaultVal: @[].}: seq[Rule]
  rules* {.defaultVal: @[].}: seq[Rule]
  Source   Edit
Rule = object
  comment* {.defaultVal: "".}: string
  match* {.defaultVal: initTable(32).}: Table[string, string]
  deliver* {.defaultVal: "".}: string
  filter* {.defaultVal: @[].}: seq[seq[string]]
  Source   Edit

Procs

proc getConfig(path: string): Config {....raises: [ValueError, IOError, OSError,
    Exception], tags: [ReadDirEffect, WriteIOEffect, ReadIOEffect, RootEffect,
                       ReadEnvEffect].}
Choose a configuration file for parsing, or if there are none available, return an empty config.   Source   Edit