@@ -45,34 +45,29 @@ func Status(args []string) {
45
45
err = json .Unmarshal (jsonData , & files )
46
46
if err == nil {
47
47
for idx , file := range files .Files {
48
- fmt .Printf (theme .ColorGray + "[" + theme .ColorBlue + "%v" + theme .ColorGray + "]" + theme .ColorReset , idx )
49
-
50
- fmt .Printf (theme .ColorGreen + " %s " , file .Filename )
51
-
52
- fmt .Printf (theme .ColorGray + "(" + theme .ColorCyan + "%vB" + theme .ColorGray + "/" + theme .ColorRed + "%vK" + theme .ColorGray + "/" + theme .ColorYellow + "%vM" + theme .ColorGray + "/" + theme .ColorBlue + "%vG" + theme .ColorGray + ")" + theme .ColorReset + " 👀\n " ,
53
- file .Size , file .Size / 1024 , file .Size / 1024 / 1024 , file .Size / 1024 / 1024 / 1024 )
54
-
55
- if len (file .Type ) < 60 {
56
- fmt .Printf (theme .ColorGray + " type: " + theme .ColorReset + "%s\n " , file .Type )
57
- } else {
58
- fmt .Printf (theme .ColorGray + " type: " + theme .ColorReset + "%s...\n " , file .Type [:60 ])
59
- }
60
48
61
49
if config .Verbose {
50
+ fmt .Printf (theme .ColorGray + "[" + theme .ColorBlue + "%v" + theme .ColorGray + "]" + theme .ColorReset , idx )
51
+ fmt .Printf (theme .ColorGreen + " %s\n " , file .Filename )
52
+
62
53
fmt .Printf (theme .ColorGray + " md5: " + theme .ColorReset + "%s\n " , file .MD5 )
63
54
fmt .Printf (theme .ColorGray + " sha1: " + theme .ColorReset + "%s\n " , file .SHA1 )
64
55
fmt .Printf (theme .ColorGray + " sha256: " + theme .ColorReset + "%s\n " , file .SHA256 )
65
56
} else {
66
- fmt .Printf (theme .ColorGray + " sha256: " + theme .ColorReset + "%s\n " , file .SHA256 )
57
+ fmt .Printf (theme .ColorGray + "[" + theme .ColorBlue + "%v" + theme .ColorGray + "]" + theme .ColorReset , idx )
58
+ fmt .Printf (theme .ColorGreen + " %s " , file .Filename )
59
+ fmt .Printf (theme .ColorReset + "%s\n " , file .SHA256 )
67
60
}
68
61
69
62
if len (file .Comment ) > 0 {
70
63
fmt .Printf (" comment: %s\n " , file .Comment )
71
64
}
72
65
73
66
if config .Verbose {
74
- fmt .Printf (" %v(%v) \n " , file .Timestamp , time . Now (). UTC (). Sub ( file . Timestamp ) )
67
+ fmt .Printf (theme . ColorPurple + " %v" + theme . ColorReset + " \n " , file .Timestamp )
75
68
}
69
+
70
+ fmt .Printf (theme .ColorGray + " type: " + theme .ColorReset + "%s\n " , file .Type )
76
71
}
77
72
}
78
73
}
0 commit comments