Skip to content

This is my first project in rust. So I made a simple tool that can change text.

Notifications You must be signed in to change notification settings

punthenk/texttool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextTool

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.

Features

  • 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

Example

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

Available operations

  • upper — Convert all letters to uppercase.
  • lower — Convert all letters to lowercase.
  • reverse — Reverse the text.
  • count — Count the characters.

Example

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

About

This is my first project in rust. So I made a simple tool that can change text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages