From 55e8da54a85c817bc6f71a9af43a7f6d813a67b3 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 24 Aug 2024 11:28:45 +0200 Subject: feat(cli/config): Show the currently active configuration --- src/status/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/status/mod.rs') 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(()) +} -- cgit 1.4.1