mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
add cli override for any configuration item
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
4e975887cf
commit
c423a83656
8 files changed
+68
-14
No files matched your search
+3
-2
@@ -22,8 +22,9 @@ pub(crate) struct Server {
|
||||
|
||||
impl Server {
|
||||
pub(crate) fn build(args: &Args, runtime: Option<&runtime::Handle>) -> Result<Arc<Self>, Error> {
|
||||
let mut config = Config::new(&args.config)?;
|
||||
crate::clap::update(&mut config, args)?;
|
||||
let raw_config = Config::load(&args.config)?;
|
||||
let raw_config = crate::clap::update(raw_config, args)?;
|
||||
let config = Config::new(&raw_config)?;
|
||||
|
||||
#[cfg(feature = "sentry_telemetry")]
|
||||
let sentry_guard = crate::sentry::init(&config);
|
||||
|
||||
Reference in new issue
Block a user