class DuPretty::CLI
Public Instance Methods
path(path = '.')
click to toggle source
# File lib/du_pretty/cli.rb, line 35 def path(path = '.') prettier = DuPretty::Prettier.new( path, min_kbyte: DuPretty::Utils.size_to_kbyte(options[:size]), depth: options[:all] ? nil : options[:depth], with_files: options[:all] ) result = if options[:tree] prettier.tree elsif options[:sort] prettier.sorted else prettier.original end print result + "\n" end