Crates.io | daf |
lib.rs | daf |
version | 1.0.1 |
source | src |
created_at | 2023-05-04 08:51:40.969021 |
updated_at | 2023-05-04 20:02:55.940058 |
description | Lists the directory and files with or without attributes as opted. |
homepage | https://github.com/isurfer21/daf |
repository | https://github.com/isurfer21/daf.git |
max_upload_size | |
id | 856448 |
size | 32,480 |
Directories & Files
Directories & Files a.k.a daf, is a command-line interface (CLI) app developed by Abhishek Kumar.
This app allows users to list the directories and files in a specified path with or without attributes as opted.
With daf
, users can easily view and manage the contents of their directories and files. The app provides several options to customize the output format, including columns, JSON, list, table, and YAML. This makes it easy for users to view the information in a format that best suits their needs.
daf
is a powerful tool for managing directories and files on your computer. Whether you need to quickly view the contents of a directory or manage your files more efficiently, daf
has got you covered.
This guide provides several methods for installing the daf tool on your computer. Follow the steps below to set up daf using the method that works best for you.
$PATH
. On macOS or Linux, this could be /usr/local/bin
, while on Windows, you could copy the binary to C:\Windows\system32
.daf --version
.If you have a Rust development environment set up on your computer, you can use the cargo install
command to install daf:
cargo install daf
.$HOME/.cargo
on macOS or Linux, or %USERPROFILE%\.cargo\bin
on Windows.daf --version
.To use daf
, run the following command:
daf.exe [OPTIONS] [PATH]
where [PATH]
is the directory/file path to use.
daf
provides several options to customize the output format:
-c, --columns
: Sets the output format to columns-h, --help
: Print help information-j, --json
: Sets the output format to JSON-l, --list
: Sets the output format to list-t, --table
: Sets the output format to table-V, --version
: Print version information-y, --yaml
: Sets the output format to YAMLHere are some examples of how to use daf
:
daf.exe -c .
daf.exe -j path/to/directory
daf
:daf.exe -V
daf.exe -l .
daf.exe -t path/to/directory
daf.exe -y path/to/directory
daf
:daf.exe -h
I hope these examples help you understand how to use the different options of daf
.
To build the Directories & Files (daf)
CLI app, follow these steps:
daf
repository from GitHub by running the following command:git clone https://github.com/isurfer21/daf.git
cd daf
cargo build
After running these commands, you should have a local copy of the daf
project that is ready to use.
The executable binary can be found in the .\target\debug\
directory. On Windows, the binary is named daf.exe
, while on macOS it is simply named daf
.
To publish the daf
crate to crates.io, run the following command:
cargo publish
This will upload the crate to crates.io so that others can easily download and use it.