Project

du_pretty

0.0
No release in over 3 years
Low commit activity in last 3 years
Simple wrapper for "du" to pretty print.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0
~> 0.16.1

Runtime

~> 0.8.1
~> 0.20.0
 Project Readme

DuPretty

Gem MIT License CircleCI Maintainability Test Coverage

Show pretty print of du outputs.

Image from Gyazo

Installation

$ gem install 'du_pretty'

Usage

$ du_pretty <path>

# specify max depth (default 1)
$ du_pretty <path> -d 2

# Filter results of `du` by its file's size
$ du_pretty <path> --size 50M

Image from Gyazo

# Show results sorted by the file's size (default)
$ du_pretty <path> --sort

Image from Gyazo

# Show tree like results.
$ du_pretty <path> --tree

# help
$ du_pretty --help

Development

# run
$ bundle install
$ bundle exec exe/du_pretty

# test
$ bundle exec rspec spec

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nullnull/du_pretty. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the DuPretty project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.