summaryrefslogtreecommitdiffstats
path: root/stdout
diff options
context:
space:
mode:
authorDaniel Milde <daniel@milde.cz>2021-02-12 12:28:38 +0100
committerDaniel Milde <daniel@milde.cz>2021-02-12 12:30:35 +0100
commit653bcd101ab4272463bef87e908e3e55e6f62246 (patch)
treee91ad315ae54c67c05a0c83dd1b72772e7ad8874 /stdout
parent5327710aa824d80b25c805c6a6b69d00304627c3 (diff)
show file flags
Diffstat (limited to 'stdout')
-rw-r--r--stdout/stdout.go6
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)
}