How joeleehen/rsls works
rsls is a Rust command-line directory lister. The user supplies a directory and options; the program parses those options, reads directory entries, optionally gathers long-format metadata, and prints a listing adapted to terminal or piped output. The sampled main source shows directory scanning, metadata formatting, icon/color handling, and terminal layout in one file. The README documents hidden-file and long-format options; unsampled control flow is not expanded into speculative stages.
Main entry points: main.rs Listing and metadata · args.rs Option parser · colors.rs ANSI colors
Components 6
CLI
- Option parser
src/args.rs
Listing runtime
- Listing and metadata
src/main.rs - Local filesystem
Presentation
- ANSI colors
src/colors.rs
Other components
- CLI user
- Terminal or pipe
Connections 5
- CLI user → Listing and metadata: invokes
README.md - Listing and metadata → Option parser: parses options
src/main.rs - Listing and metadata → Local filesystem: reads entries and metadata
src/main.rs - Listing and metadata → Terminal or pipe: prints listing
src/main.rs - Listing and metadata → ANSI colors: uses ANSI colors
src/main.rs