Skip to content

Commit dd647eb

Browse files
committed
refactor: split into library and cli
1 parent 2e58735 commit dd647eb

File tree

5 files changed

+956
-930
lines changed

5 files changed

+956
-930
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
[package]
2-
name = "string_processor"
3-
version = "0.2.0"
2+
name = "string_pipeline"
3+
version = "0.3.0"
44
edition = "2024"
5-
description = "String Template Processor"
5+
authors = ["Luis M Alvarez"]
6+
description = "A flexible, template-driven string transformation pipeline for Rust."
67
license = "MIT"
8+
repository = "https://github.com/lalvarezt/string_pipeline"
9+
homepage = "https://github.com/lalvarezt/string_pipeline"
10+
documentation = "https://docs.rs/string_pipeline"
11+
readme = "README.md"
12+
keywords = ["string", "pipeline", "template", "text", "transformation"]
13+
categories = ["text-processing", "command-line-utilities"]
714

815
[dependencies]
9-
regex = "1.11.1"
10-
clap = { version = "4.5.39", features = ["derive"] }
16+
regex = "1"
17+
clap = { version = "4", features = ["derive"] }

src/lib.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//! # string_pipeline
2+
//!
3+
//! A flexible, template-driven string transformation pipeline for Rust.
4+
//!
5+
//! ## Example
6+
//!
7+
//! ```rust
8+
//! use string_pipeline::process;
9+
//! let result = process("a,b,c", "{split:,:..:join:\\n}").unwrap();
10+
//! assert_eq!(result, "a\nb\nc");
11+
//! ```
12+
13+
mod pipeline;
14+
15+
pub use pipeline::apply_ops;
16+
pub use pipeline::parse_template;
17+
pub use pipeline::process;
18+
pub use pipeline::{RangeSpec, StringOp, Value};

0 commit comments

Comments
 (0)