From c10c46c2df66ce08da03784eb93519a32366cafa Mon Sep 17 00:00:00 2001 From: danimelchor Date: Sun, 26 Mar 2023 23:36:05 -0400 Subject: config showing --- src/cli/config.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cli/config.rs b/src/cli/config.rs index 2049686..8419ef2 100644 --- a/src/cli/config.rs +++ b/src/cli/config.rs @@ -11,6 +11,8 @@ pub struct Args { enum Command { /// Reset the configuration to default Reset, + /// Show the configuration + Show, /// Set the mode to vi SetViMode, /// Set the mode to normal @@ -30,6 +32,9 @@ pub fn run(mut app: App, args: Args) -> Result<()> { sb.save_to_file()?; app.settings = sb.build(); } + Command::Show => { + println!("{}", serde_json::to_string_pretty(&app.settings)?); + } Command::SetViMode => { app.settings.set_vi_mode(); } -- cgit v1.2.3