diff options
| author | A Farzat <a@farzat.xyz> | 2026-06-20 19:43:18 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-06-20 19:58:06 +0300 |
| commit | 43454f5035be9b07e71596dfddad271db5061495 (patch) | |
| tree | b9144cf2898708db437cf23974a5af44eae71f10 /src/bin/r2md-remove.rs | |
| parent | f54df9fd6d50030beee064bfd1415bad066107d2 (diff) | |
| download | repo2markdown-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.rs | 6 |
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, ) } |
