diff options
author | Daniel Milde <daniel@milde.cz> | 2021-02-12 12:28:38 +0100 |
---|---|---|
committer | Daniel Milde <daniel@milde.cz> | 2021-02-12 12:30:35 +0100 |
commit | 653bcd101ab4272463bef87e908e3e55e6f62246 (patch) | |
tree | e91ad315ae54c67c05a0c83dd1b72772e7ad8874 /stdout | |
parent | 5327710aa824d80b25c805c6a6b69d00304627c3 (diff) |
show file flags
Diffstat (limited to 'stdout')
-rw-r--r-- | stdout/stdout.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stdout/stdout.go b/stdout/stdout.go index e15d8c5..8776750 100644 --- a/stdout/stdout.go +++ b/stdout/stdout.go @@ -135,9 +135,9 @@ func (ui *UI) AnalyzePath(path string, analyzer analyze.Analyzer, _ *analyze.Fil var lineFormat string if ui.useColors { - lineFormat = "%20s %s\n" + lineFormat = "%s %20s %s\n" } else { - lineFormat = "%9s %s\n" + lineFormat = "%s %9s %s\n" } var size int64 @@ -152,11 +152,13 @@ func (ui *UI) AnalyzePath(path string, analyzer analyze.Analyzer, _ *analyze.Fil if file.IsDir { fmt.Fprintf(ui.output, lineFormat, + string(file.Flag), ui.formatSize(size), ui.blue.Sprintf("/"+file.Name)) } else { fmt.Fprintf(ui.output, lineFormat, + string(file.Flag), ui.formatSize(size), file.Name) } |