Crates.io | ds-rs |
lib.rs | ds-rs |
version | 0.1.0 |
source | src |
created_at | 2023-06-01 00:22:49.46955 |
updated_at | 2023-06-01 00:22:49.46955 |
description | A command to search and display directory structures. |
homepage | |
repository | https://github.com/mysteriouslyseeing/directory-search-rs |
max_upload_size | |
id | 879336 |
size | 16,368 |
To run ds-rs, use the command ds
:
> ds --help
A command to search and display directory structures.
Usage: ds.exe [OPTIONS]
Options:
-p, --path <PATH> The path at which to start. If unspecified, the current directory is used.
-r, --recursive Enables recursion
-d, --depth <DEPTH> The depth to which to recurse. If unspecified, the depth is unlimited.
-f, --show-files Displays files along with directories
-s, --show-symlinks Displays symlinks along with directories
-h, --help Print help
-V, --version Print version
> ds --path "C:/Users/%USERNAME%/Documents"
Displaying contents of "C:/Users/%USERNAME%/Documents"
="Github"
="Projects"
> ds --path "C:/Users/%USERNAME%/Documents" -f -s
Displaying contents of "C:/Users/%USERNAME%/Documents"
="GitHub"
="Projects"
-"Resume.docx"
-"Resume.pdf"
> ds --path "C:/Users/%USERNAME%/Documents" -r --depth 3 -f -s
Displaying contents of "C:/Users/%USERNAME%/Documents"
="GitHub"
="Projects"
="Python"
="python_project_1"
="python_project_2"
-"python_script.py"
="Rust"
="directory-search-rs"
-"new_bin_and_lib.bat"
-"Resume.docx"
-"Resume.pdf"
The easiest way to install this binary is through cargo install
:
cargo install ds-rs
To build from source, clone the git repository, build with cargo, and move the binary to a stable folder.
> git clone https://github.com/mysteriouslyseeing/directory-search-rs
> cd directory-search-rs
> cargo build --release
> cp ./target/release/ds /path/to/destination/