Commit Graph

3 Commits

Author SHA1 Message Date
Ville Vesilehto
93ec38a661 test(coremain): Add unit tests (#7308)
Add comprehensive test coverage for the coremain package,
focusing on configuration loading, version information, and
output formatting. Test coverage improves from 0% to 59.7%.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-05-19 14:23:36 -04:00
Miek Gieben
f5fe98395e Remove -cpu flag (#2793)
The -cpu flag is a weird one (and copied originally from Caddy), it
basically sets GOMAXPROCS which can be *easily* done by just setting
that environment variable. Also with systemd and containerized env you
set this externally *anyway*, so there is little use to do this again in
the binary.

Also the option's help was confusing (i.e. percentage of what?). Remove
the option and supporting files.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-03 20:12:51 +01:00
Miek Gieben
47f4e165a0 Fix main startup (#232)
Set version and name of the program. And then call coremain.Run().

The coremain split makes CoreDNS embeddable.

Also see #189 for an old PR.
2016-08-23 16:36:29 +01:00