summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-28 07:05:21 +0800
committerGitHub <noreply@github.com>2024-07-28 07:05:21 +0800
commit3441630c6223ebbab55d62c969390edf865d3d34 (patch)
treea535c9a01528f70362047ffc682143509e01d3b4 /src
parent0e740d81e94505bd57036755abaaecb12c3b26e3 (diff)
downloadaichat-3441630c6223ebbab55d62c969390edf865d3d34.tar.gz
feat: abandon cli options --wrap, --no-highlight and --light-theme (#758)
Diffstat (limited to 'src')
-rw-r--r--src/cli.rs9
-rw-r--r--src/main.rs9
2 files changed, 0 insertions, 18 deletions
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, <max-width>)
- #[clap(short = 'w', long)]
- pub wrap: Option<String>,
- /// 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);