diff options
author | danimelchor <dmh672@gmail.com> | 2023-03-26 23:36:05 -0400 |
---|---|---|
committer | danimelchor <dmh672@gmail.com> | 2023-03-26 23:36:05 -0400 |
commit | c10c46c2df66ce08da03784eb93519a32366cafa (patch) | |
tree | bafdbd7fb88e6e7dbc959738db65700f1fc50a4a | |
parent | 0819aecdc726a65b5b411e6fc5e7aa0a480e8e18 (diff) |
config showing
-rw-r--r-- | src/cli/config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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(); } |