dispatchrun / dispatch

Entrypoint of the Dispatch ecosystem.
11 stars 1 forks source link

Rework the configuration file #17

Closed chriso closed 5 months ago

chriso commented 5 months ago

This PR reworks the configuration file:

Here's an example:

# Warning = 'THIS FILE IS GENERATED. DO NOT EDIT!'
active = 'org1'

[Organizations]
[Organizations.org1]
api_key = 'foobar'

[Organizations.org2]
api_key = 'abcxyz'

It's not the prettiest looking thing, but this is what the TOML library we're using generates. I don't think we can improve it without using lower-level APIs or generating the file manually.

This fixes https://github.com/stealthrocket/dispatch/issues/5.