Discover Packages
github.com/PuloV/pls
command
module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Nov 26, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
PLS
The PLS (Pretty LS) tool was made in order to give help in finding and analyzing the file structure for large files.
In order to implement it, I was inspired by the ls
, df
, du
, and tree
.
Installation
Make sure to install Go .
Check your GOBIN
env and if not set, configure it as
go env -w GOBIN="$GOPATH/bin"
Install the CLI tool using
go install github.com/PuloV/pls@latest
Test the installation using
pls -v
Usage
In order to use it properly run the script from any directory on your machine using the following syntax
pls <OPTIONS> <FILES_OR_DIRS>
and it will give you a tree-like structure of files ordered based on the file sizes.
Possible options:
-v
will show the current version of the CLI tool
-l <VALUE>
will limit the displayed files to the largest <VALUE>
in the given directory. By default shows all files.
-d <VALUE>
will limit the displayed files in depth to <VALUE>
levels in the given directory. By default displays files only on the 1st level.
-s
will show human-readable file sizes of the listed files. By default it's disabled.
-t
will show the types of the listed files. By default it's disabled.
-sp
will show the percentage of the displayed file size according to its parent directory. By default it's disabled.
-fc
will show the count of the files inside the listed files. By default it's disabled.
-fp
will show the percentage of the count of files inside the listed files according to its parent directory. By default it's disabled.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.