slateconf 0.1.0

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);
}
Authors:
  • mostypc123
Dependencies:
none
Versions:
0.1.0 2026-Sep-15
~master 2026-Sep-16
Show all 2 versions
Download Stats:
  • 3 downloads today

  • 3 downloads this week

  • 3 downloads this month

  • 3 downloads total

Score:
0.0
Short URL:
slateconf.dub.pm