Skip to content

what format is the config file? #4270

Answered by GammaC0de
OneCDOnly asked this question in Help
Discussion options

You must be logged in to vote

First line is file format version (always 2).
The has file sections, each section line can be parsed using regex (python regex notation) (.+?)\s+-\s+"(.+?)":,
first group in the regex is the section name, group 2 is the section title.

Each section contains configuration line \s*(?P<T>.+?)\s+(?P<N>[^ ]+?)\s*:\s*"(?P<D>.+?)"\s*=\s?(?P<V>.*)
Group T - type (bool, int, ip, time , list of values)
Group N - name
Group D - description
Group V - value

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@OneCDOnly
Comment options

@GammaC0de
Comment options

@OneCDOnly
Comment options

Answer selected by OneCDOnly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants