pls

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 5 Imported by: 0

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

  1. Make sure to install Go.
  2. Check your GOBIN env and if not set, configure it as
    go env -w GOBIN="$GOPATH/bin"
    
  3. Install the CLI tool using
    go install github.com/PuloV/pls@latest
    
  4. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL