slateconf ~master
A config file format.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
slate-conf
A flexible configuration file format for Redrose Linux projects.
key :: value
key1 :: key2 :: value
[my_list] :: thing :: thing :: hello
-- comment
{my_group}
key :: value2
{end}
Soon, this will be a DUB package, and C/C++ bindings are planned.
Usage
import slateconf;
import std.stdio;
import core.stdc.stdlib : exit;
SlateConf conf;
try {
conf = SlateConf("file.slate");
} catch (SlateConfParseError e) {
writeln("Error parsing file.slate: " ~ e.msg);
exit(1);
}
try {
writeln(conf["my_group.key"]);
} catch (SlateConfOpIndexError e) {
writeln("No group 'my_group' in file.slate.");
exit(1);
}
- ~master released 15 hours ago
- redroselinux/slate-conf
- Unlicense
- Copyright © 2026, mostypc123
- Authors:
- Dependencies:
- none
- Versions:
-
Show all 2 versions0.1.0 2026-Sep-15 ~master 2026-Sep-16 - Download Stats:
-
-
3 downloads today
-
3 downloads this week
-
3 downloads this month
-
3 downloads total
-
- Score:
- 0.0
- Short URL:
- slateconf.dub.pm