#directory #ls #command #display #above

bin+lib cain_ls

A simple ls command implementation in Rust

4 releases

0.1.3 Apr 28, 2024
0.1.2 Apr 26, 2024
0.1.1 Apr 26, 2024
0.1.0 Apr 26, 2024

#1 in #above

MIT license

7KB
134 lines

cain_ls

Goal 1

  1. get curr directory
  2. get all files in curr directory
  3. display above files

Goal 2

  1. make executable

Goal 3

  1. Adjust all blank spaces of the file name equally

Goal 4

  1. Color varies depending on the file type.

Goal 5

  1. -a, -l options specified and even created a help command
  2. -a: display all files including hidden files
  3. -l: display file information
    1. to retrieve user, group name implement later

Goal 6

  1. refactoring

Dependencies

~1–11MB
~61K SLoC