BREAKING: Déplacer config à cmd.app.Config et bump couleuvre #14

Merged
vlbeaudoin merged 3 commits from refactor/app-config into main 2023-12-04 21:32:39 -05:00

3 commits

Author SHA1 Message Date
3b965105fa docs: add examples/babillard.yaml 2023-12-04 21:31:01 -05:00
72ff53f846 change!: move config to cmd.app.Config
bump: couleuvre -> `v0.10.0`

Move `couleuvre.NewApp` to `cmd.init`

Make flags target `&cmd.app.Config`

Fix `ServerCmdExecuter`'s `RunServer` parameters

Fix call to `app.Parse` in `cmd.Execute`

BREAKING: Remove `cmd.Cfg()`
BREAKING: Remove `cmd.cfg config.Config`
2023-12-04 21:27:51 -05:00
a3c2c8d1f0 change!: remove config.Config dependency injection in ContenuHandler
`ContenuHandler` now only stores a `ContenuDir string` instead of a
whole config.

BREAKING: change `handlers.RunServer` parameters to `contenuDir string, serverPort int`
2023-12-04 21:23:25 -05:00