mirror of
https://github.com/restic/restic.git
synced 2025-08-27 09:50:24 +00:00
Add --human-readable to ls and find output
Modifies format module to add options for human readable storage size formatting, using size parsing already in ui/format. Cmd flag --human-readable added to ls and find commands. Additional option added to formatNode to support printing size in regular or new human readable format
This commit is contained in:
13
changelog/unreleased/issue-4159
Normal file
13
changelog/unreleased/issue-4159
Normal file
@@ -0,0 +1,13 @@
|
||||
Enhancement: Add --human-readable flag to ls and find commands
|
||||
|
||||
Previously, the `ls` and `find` commands showed with the `-l` option
|
||||
showed size in bytes, and did not have an option for a more human
|
||||
readable format that converted these longer numbers into values such
|
||||
as MiB or GiB
|
||||
|
||||
The new `--human-readable` option for `ls` and `find` when used with
|
||||
the `-l` option will convert longer size values into more human friendly
|
||||
values, with an appropriate suffix depending on the output size. For
|
||||
example, a value of `14680064` will be shown as `14.000 MiB`.
|
||||
|
||||
https://github.com/restic/restic/issues/4159
|
Reference in New Issue
Block a user