Rust-based text processor provides flexible and efficient processing and conversion of text
- SRT File Processing: Reads .srt files from a specified input directory and copies them to an output directory.
- Markdown Combining: Combines the contents of processed .srt files into a single Markdown file.
- Command-line Interface: Allows users to specify input and output directories via CLI arguments, with default values if not specified.
- Future Expansion: Designed with extensibility in mind to support various other text file formats in the future.
- Rust (version 1.50 or later)
Clone the repository and navigate to the project directory:
git clone https://github.com/Sunny-117/text-processor
cd text-processor
You can run the project with default input and output directories (input and output):
cargo run
cargo run -- --input custom_input_dir --output custom_output_dir
cargo install --path .
tp
tp --input custom_input_dir --output custom_output_dir
text-processor/
├── Cargo.toml
├── src/
│ ├── main.rs
│ └── file_ops.rs
├── input/
│ ├── file1.srt
│ ├── file2.srt
│ └── ...
└── output/ (generated after running the program)
cargo bundle --release
Contributions are welcome! Please fork the repository and open a pull request with your changes. Ensure your code adheres to the project's coding standards and includes appropriate tests.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the Rust community for their support and contributions.