PLUS-POSTECH / soma

Cross-platform CTF problem container manager
Apache License 2.0
24 stars 3 forks source link

Move file definitions into subconfiguration in `soma.toml` #87

Closed Qwaz closed 5 years ago

Qwaz commented 5 years ago

Current design of soma.toml assumes that there is a main configuration. In multi-configuration scenario, files are implicitly copied into the main configuration instead of other subsidiary configurations.

name = "current-design"

[[executable]]
# Executable is implicitly copied into binary container instead of mysql container

[binary]
...

[mysql]
...

I suggest to move those file definitions into sub-configurations.

name = "new-design"

[binary]
[[binary.executable]]
...

[mysql]
...

The syntax becomes verboser, but it is more straightforward and explicit to users. It also removes the concept of main configuration, so users can freely compose whatever configurations they want.