klarna / bec

The BitBucket Erlang Client
Apache License 2.0
47 stars 12 forks source link

Allow using syntactic sugar in configuration file #9

Open robertoaloi opened 3 years ago

robertoaloi commented 3 years ago

The tool aims to keep the configuration file structure in sync with the raw Bitbucket API structure. This may indeed simplify the tool, but also makes the configuration files complex and hard to read.

The proposal is to implement a mechanism that allows preprocessing the configuration file with a set of "parse transform-like" functions that could map a user-friendly structure to the raw format used internally in later stages.

The transforms shall also document the Yaml format they accept.

This would allow things like: