From 3441630c6223ebbab55d62c969390edf865d3d34 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 28 Jul 2024 07:05:21 +0800 Subject: feat: abandon cli options --wrap, --no-highlight and --light-theme (#758) --- src/cli.rs | 9 --------- src/main.rs | 9 --------- 2 files changed, 18 deletions(-) (limited to 'src') diff --git a/src/cli.rs b/src/cli.rs index 7811158..e59571d 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -39,15 +39,6 @@ pub struct Cli { /// Turn off stream mode #[clap(short = 'S', long)] pub no_stream: bool, - /// Control text wrapping (no, auto, ) - #[clap(short = 'w', long)] - pub wrap: Option, - /// Turn off syntax highlighting - #[clap(short = 'H', long)] - pub no_highlight: bool, - /// Use light theme - #[clap(long)] - pub light_theme: bool, /// Display the message without sending it #[clap(long)] pub dry_run: bool, diff --git a/src/main.rs b/src/main.rs index 609b51b..172c8e3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -108,12 +108,6 @@ async fn run( println!("{rags}"); return Ok(()); } - if let Some(wrap) = &cli.wrap { - config.write().set_wrap(wrap)?; - } - if cli.light_theme { - config.write().light_theme = true; - } if cli.dry_run { config.write().dry_run = true; } @@ -154,9 +148,6 @@ async fn run( if cli.save_session { config.write().set_save_session(Some(true)); } - if cli.no_highlight { - config.write().highlight = false; - } if cli.info { let info = config.read().info()?; println!("{}", info); -- cgit v1.2.3