Commit graph

2 commits

Author SHA1 Message Date
fox.cpp
a167c8ba45
Move -state, -runtime flags into configuration
While using maddyctl with non-standard directories, users always have to
specify them using command-line arguments, which is inconvenient. This
commit allows maddyctl to read these values from the configuration,
requiring only the path to the configuration file to be specified.

To ensure consistency and avoid confusion, paths specified in
the configuration are required to be absolute.

Due to inability to set MADDYSTATE, MADDYRUNTIME, etc before reading the
configuration, these environment variables were removed.
2019-11-15 20:51:44 +03:00
fox.cpp
b3a09835de
Move all code from cmd/maddy into root package
Build info helpers can be reused by maddyctl.
Same goes for directory configuration.
2019-11-15 19:34:20 +03:00