From bcb729ce0cae2cd8bbd8f60f8e98a81674bcd4fb Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 01:37:39 +0000 Subject: config: the report of a configuration, and --print-config The report moves to the crate, as it was (report::report, Reports, Values): each option of a schema with its value, by the settings in effect given as JSON by option name, and where it came from; imported values and secrets left out. And the argument a program prints it by (arguments::with_print_config, prints_config). continuum gives its settings and what it loaded to it; --print-config and GET /admin/config say what they said. --- crates/config/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/config/src/lib.rs') diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index aae8bce..bff1221 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -6,6 +6,7 @@ //! * [`arguments`]: the command line, and files and arguments put together (with the //! feature `clap`); //! * [`layer`]: values and where they came from, later sources over earlier ones; +//! * [`report`]: what each option ended up as and where from, to print or to serve; //! * [`import`]: values taken from elsewhere instead of written out; //! * [`units`]: durations and sizes as operators write them. @@ -15,6 +16,7 @@ pub mod file; pub mod import; pub mod layer; pub mod option; +pub mod report; pub mod units; #[cfg(test)] -- cgit v1.3.1