about summary refs log tree commit diff stats
path: root/src/status/mod.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 11:28:45 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 11:45:28 +0200
commit55e8da54a85c817bc6f71a9af43a7f6d813a67b3 (patch)
tree870dea01a562ec3709fd190aa616062705cdb079 /src/status/mod.rs
parentfix(config): Check for wrong keys in the config file (diff)
downloadyt-55e8da54a85c817bc6f71a9af43a7f6d813a67b3.tar.gz
yt-55e8da54a85c817bc6f71a9af43a7f6d813a67b3.zip
feat(cli/config): Show the currently active configuration
Diffstat (limited to '')
-rw-r--r--src/status/mod.rs8
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(())
+}