Skip to content

Cincoconfig File Format #44

@ameily

Description

@ameily

Create a feature rich cincoconfig file format. The format parser and serializer must support:

  • Reading and preserving comments.
  • Adding comments when writing to disk.
  • Simple to write and human readable
  • Format is simple and secure
  • Distinguishable from YAML, JSON, etc.

My initial thought is something like an INI format:

[db]
host = 192.168.1.2
port = 10

# Sub sections are [X.Y]
[db.ssl]
enabled = true
client-cert = /path/to/cert

# List of objects (schemas) is multiple [X.Y] sections, where X.Y is the list field key
[db.users]
name = Adam
# list of simple types (int, str, float) can be comma separated or newline seperated
groups = users, sudo, thing, item\, with a comma

[db.users]
name = Sean

[banner]
message = <
  Very long message that can
  span multiple lines. "\n" chars
  are translated as single spaces.

  But, two "\n" chars are a new
  paragraph. This is similar rules
  to Markdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions