diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:28:45 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:45:28 +0200 |
commit | 55e8da54a85c817bc6f71a9af43a7f6d813a67b3 (patch) | |
tree | 870dea01a562ec3709fd190aa616062705cdb079 /src/status/mod.rs | |
parent | fix(config): Check for wrong keys in the config file (diff) | |
download | yt-55e8da54a85c817bc6f71a9af43a7f6d813a67b3.tar.gz yt-55e8da54a85c817bc6f71a9af43a7f6d813a67b3.zip |
feat(cli/config): Show the currently active configuration
Diffstat (limited to '')
-rw-r--r-- | src/status/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/status/mod.rs b/src/status/mod.rs index 662a391..688ac9a 100644 --- a/src/status/mod.rs +++ b/src/status/mod.rs @@ -97,3 +97,11 @@ Dropped Videos: {dropped_videos_len} ({dropped_videos_changing} changing) Ok(()) } + +pub fn config(app: &App) -> Result<()> { + let config_str = toml::to_string(&app.config)?; + + print!("{}", config_str); + + Ok(()) +} |