Skip to content

ArturGC/rs-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command-line utilities are the gateway to learning any programming language. They have simplified input and output systems which makes the code less complex to write. This allows you to focus on the problem at hand and learn Rust instead of learning a specific problem domain.

Rewriting existing tools in Rust can provide a great baseline to get started:

  • echo: repeats input
  • cat: concatenates files
  • ls: list directories
  • find: locate files or directgories
  • grep: matches text in files

Level up your skills and project by adding in these extra features:

Add extra flags to the tools to enhance their feature set Use proper error handling so the programs don't end prematurely (no .unwrap() and no .expect()) Add multi-threading support. find and grep are good candidates for this Add colorized output

some foundation crates

The Rust standard library is light on features, so here are some foundation crates that are great to use in nearly any project:

  • thiserror: Make custom error types
  • color-eyre: Report application errors
  • clap: Process command line arguments
  • serde: Serialize and de-serialize data structures

About

Rust CLI utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages