mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
Update default configuration handling and integrate NyxResult into config.rs
- Introduced `DEFAULT_CONFIG_TOML` to simplify default configuration loading. - Replaced `show_progress` with `quiet` in configuration for improved clarity. - Refactored `create_example_config` to use `NyxResult` and streamline logic with fallback handling. - Added `default-nyx.conf` file for default configuration management. - Enhanced `merge_configs` to include new parameters like `scan_timeout_secs` and `quiet`.
This commit is contained in:
parent
14a549ac39
commit
4bb61aba8b
3 changed files with 122 additions and 22 deletions
|
|
@ -10,6 +10,9 @@ pub enum NyxError {
|
|||
#[error("I/O error: {0}")]
|
||||
Io(#[from] std::io::Error),
|
||||
|
||||
#[error("TOML parse error: {0}")]
|
||||
Toml(#[from] toml::de::Error),
|
||||
|
||||
#[error("SQLite error: {0}")]
|
||||
Sql(#[from] rusqlite::Error),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue