TextTool is a simple, CLI application written in Rust for performing text transformations such as converting to uppercase, lowercase, reversing text, and more.
The user enters a string, selects one or more operations from a menu, and the tool applies them in the chosen order.
- Interactive input: enter text directly in the terminal.
- Multiple operations: select multiple transformations (
upper,lower,reverse,count). - Order preserved: operations are applied in the order you select them.
- Error handling: when forgot to select operation you do not have to type the string again.
- Files: you can also do the operations on a file
- Output to file: makes a file with the output insid
texttool input
Please enter your text: Hello World!
Choose one of more operations (use space to select) ›
> [X] Reverse
> [X] Uppercase
> [ ] Lowercase
> [X] Count
Charactor count: 12
result: !DLROW OLLEH- upper — Convert all letters to uppercase.
- lower — Convert all letters to lowercase.
- reverse — Reverse the text.
- count — Count the characters.
In this example it is just one command
texttool transform -t "Hello World!" --reverse --upper --count
// -t is the same as --text but shorter
Charactor count: 12
result: !DLROW OLLEH
texttool transform -f test.txt --reverse --upper --count
// -f is the same as --file but shorter
...outputs the file with operations
texttool reverse -t "output to file" --upper --out output.txt
//In output.txt:
OUTPUT TO FILE