summaryrefslogtreecommitdiff
path: root/src/bin/r2md-remove.rs
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-06-20 19:43:18 +0300
committerA Farzat <a@farzat.xyz>2026-06-20 19:58:06 +0300
commit43454f5035be9b07e71596dfddad271db5061495 (patch)
treeb9144cf2898708db437cf23974a5af44eae71f10 /src/bin/r2md-remove.rs
parentf54df9fd6d50030beee064bfd1415bad066107d2 (diff)
downloadrepo2markdown-43454f5035be9b07e71596dfddad271db5061495.tar.gz
repo2markdown-43454f5035be9b07e71596dfddad271db5061495.zip
Make remove_paths take origin_base directly
Passing normalizer makes both the binary and tests complicated without reducing the complexity of the function signature.
Diffstat (limited to 'src/bin/r2md-remove.rs')
-rw-r--r--src/bin/r2md-remove.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bin/r2md-remove.rs b/src/bin/r2md-remove.rs
index 0835668..07c9124 100644
--- a/src/bin/r2md-remove.rs
+++ b/src/bin/r2md-remove.rs
@@ -1,7 +1,7 @@
use std::{io, path::PathBuf};
use clap::Parser;
-use repo2markdown::{normalizer::Normalizer, path_list_editor::remove_paths};
+use repo2markdown::path_list_editor::remove_paths;
/// Remove paths from a null-separated file list from stdin.
#[derive(Debug, Parser)]
@@ -18,13 +18,11 @@ struct Cli {
fn main() -> Result<(), Box<dyn std::error::Error>> {
let cli = Cli::parse();
- let normalizer = Normalizer::new(&cli.origin, &cli.origin)?;
-
remove_paths(
io::stdin().lock(),
io::stdout().lock(),
&cli.paths,
- &normalizer,
+ &cli.origin,
)
}