#cli #cli-applications #tool #unix #command-line-tool

app cli_app_capo15

A Rust CLI application with Unix-like tools

1 unstable release

0.1.1 Nov 28, 2024

#1644 in Command line utilities

Download history 148/week @ 2024-11-25 6/week @ 2024-12-09

154 downloads per month

MIT/Apache

15KB
318 lines

CLI App

A Rust-based CLI application providing Unix-like tools, including echo, cat, ls, find, grep, diff, cmp, head, and tail.

Features

  • echo: Prints arguments to the console.
  • cat: Displays the contents of a file.
  • ls: Lists files and directories.
  • find: Searches for files in directory that match specified substring.
  • grep: Searches for pattern in files and shows applicable matches.
  • diff: Compares two files line by line and shows differences along with its line numbers.
  • cmp: Compares two files to see if they are identical. States if they are or aren't.
  • head: Displays first 10 lines of a file.
  • tail: Displays last 10 lines of a file.

Installation

Once published, install using:

cargo install cli_app

Dependencies

~1.1–1.7MB
~32K SLoC