mirror of https://github.com/status-im/consul.git
Remove trailing tabs from output
This commit is contained in:
parent
491f2f0a57
commit
48a358df1b
|
@ -48,25 +48,25 @@ func (_ *prettyFormatter) Format(info *OutputFormat) (string, error) {
|
||||||
fmt.Fprintf(tw, "\n Term\t%d", info.Meta.Term)
|
fmt.Fprintf(tw, "\n Term\t%d", info.Meta.Term)
|
||||||
fmt.Fprintf(tw, "\n Version\t%d", info.Meta.Version)
|
fmt.Fprintf(tw, "\n Version\t%d", info.Meta.Version)
|
||||||
fmt.Fprintf(tw, "\n")
|
fmt.Fprintf(tw, "\n")
|
||||||
fmt.Fprintln(tw, "\n Type\tCount\tSize\t")
|
fmt.Fprintln(tw, "\n Type\tCount\tSize")
|
||||||
fmt.Fprintf(tw, " %s\t%s\t%s\t", "----", "----", "----")
|
fmt.Fprintf(tw, " %s\t%s\t%s", "----", "----", "----")
|
||||||
// For each different type generate new output
|
// For each different type generate new output
|
||||||
for _, s := range info.Stats {
|
for _, s := range info.Stats {
|
||||||
fmt.Fprintf(tw, "\n %s\t%d\t%s\t", s.Name, s.Count, ByteSize(uint64(s.Sum)))
|
fmt.Fprintf(tw, "\n %s\t%d\t%s", s.Name, s.Count, ByteSize(uint64(s.Sum)))
|
||||||
}
|
}
|
||||||
fmt.Fprintf(tw, "\n %s\t%s\t%s\t", "----", "----", "----")
|
fmt.Fprintf(tw, "\n %s\t%s\t%s", "----", "----", "----")
|
||||||
fmt.Fprintf(tw, "\n Total\t\t%s\t", ByteSize(uint64(info.TotalSize)))
|
fmt.Fprintf(tw, "\n Total\t\t%s", ByteSize(uint64(info.TotalSize)))
|
||||||
|
|
||||||
if info.StatsKV != nil {
|
if info.StatsKV != nil {
|
||||||
fmt.Fprintf(tw, "\n")
|
fmt.Fprintf(tw, "\n")
|
||||||
fmt.Fprintln(tw, "\n Key Name\tCount\tSize\t")
|
fmt.Fprintln(tw, "\n Key Name\tCount\tSize")
|
||||||
fmt.Fprintf(tw, " %s\t%s\t%s\t", "----", "----", "----")
|
fmt.Fprintf(tw, " %s\t%s\t%s", "----", "----", "----")
|
||||||
// For each different type generate new output
|
// For each different type generate new output
|
||||||
for _, s := range info.StatsKV {
|
for _, s := range info.StatsKV {
|
||||||
fmt.Fprintf(tw, "\n %s\t%d\t%s\t", s.Name, s.Count, ByteSize(uint64(s.Sum)))
|
fmt.Fprintf(tw, "\n %s\t%d\t%s", s.Name, s.Count, ByteSize(uint64(s.Sum)))
|
||||||
}
|
}
|
||||||
fmt.Fprintf(tw, "\n %s\t%s\t%s\t", "----", "----", "----")
|
fmt.Fprintf(tw, "\n %s\t%s\t%s", "----", "----", "----")
|
||||||
fmt.Fprintf(tw, "\n Total\t\t%s\t", ByteSize(uint64(info.TotalSizeKV)))
|
fmt.Fprintf(tw, "\n Total\t\t%s", ByteSize(uint64(info.TotalSizeKV)))
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := tw.Flush(); err != nil {
|
if err := tw.Flush(); err != nil {
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
Term 2
|
Term 2
|
||||||
Version 1
|
Version 1
|
||||||
|
|
||||||
Type Count Size
|
Type Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Register 3 1.7KB
|
Register 3 1.7KB
|
||||||
ConnectCA 1 1.2KB
|
ConnectCA 1 1.2KB
|
||||||
ConnectCAProviderState 1 1.1KB
|
ConnectCAProviderState 1 1.1KB
|
||||||
Index 12 344B
|
Index 12 344B
|
||||||
Autopilot 1 199B
|
Autopilot 1 199B
|
||||||
ConnectCAConfig 1 197B
|
ConnectCAConfig 1 197B
|
||||||
FederationState 1 139B
|
FederationState 1 139B
|
||||||
SystemMetadata 1 68B
|
SystemMetadata 1 68B
|
||||||
ChunkingState 1 12B
|
ChunkingState 1 12B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 5KB
|
Total 5KB
|
||||||
|
|
|
@ -4,15 +4,15 @@
|
||||||
Term 2
|
Term 2
|
||||||
Version 1
|
Version 1
|
||||||
|
|
||||||
Type Count Size
|
Type Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Register 3 1.8KB
|
Register 3 1.8KB
|
||||||
ConnectCA 1 1.2KB
|
ConnectCA 1 1.2KB
|
||||||
ConnectCAProviderState 1 1.1KB
|
ConnectCAProviderState 1 1.1KB
|
||||||
Index 11 313B
|
Index 11 313B
|
||||||
ConnectCAConfig 1 247B
|
ConnectCAConfig 1 247B
|
||||||
Autopilot 1 199B
|
Autopilot 1 199B
|
||||||
SystemMetadata 1 68B
|
SystemMetadata 1 68B
|
||||||
ChunkingState 1 12B
|
ChunkingState 1 12B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 5KB
|
Total 5KB
|
||||||
|
|
|
@ -4,24 +4,24 @@
|
||||||
Term 2
|
Term 2
|
||||||
Version 1
|
Version 1
|
||||||
|
|
||||||
Type Count Size
|
Type Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
KVS 27 12.3KB
|
KVS 27 12.3KB
|
||||||
Register 5 3.4KB
|
Register 5 3.4KB
|
||||||
Index 11 285B
|
Index 11 285B
|
||||||
Autopilot 1 199B
|
Autopilot 1 199B
|
||||||
Session 1 199B
|
Session 1 199B
|
||||||
CoordinateBatchUpdate 1 166B
|
CoordinateBatchUpdate 1 166B
|
||||||
Tombstone 2 146B
|
Tombstone 2 146B
|
||||||
FederationState 1 139B
|
FederationState 1 139B
|
||||||
ChunkingState 1 12B
|
ChunkingState 1 12B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 16.8KB
|
Total 16.8KB
|
||||||
|
|
||||||
Key Name Count Size
|
Key Name Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
vault/core 16 5.9KB
|
vault/core 16 5.9KB
|
||||||
vault/sys 7 4.4KB
|
vault/sys 7 4.4KB
|
||||||
vault/logical 4 2KB
|
vault/logical 4 2KB
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 12.3KB
|
Total 12.3KB
|
||||||
|
|
|
@ -4,41 +4,41 @@
|
||||||
Term 2
|
Term 2
|
||||||
Version 1
|
Version 1
|
||||||
|
|
||||||
Type Count Size
|
Type Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
KVS 27 12.3KB
|
KVS 27 12.3KB
|
||||||
Register 5 3.4KB
|
Register 5 3.4KB
|
||||||
Index 11 285B
|
Index 11 285B
|
||||||
Autopilot 1 199B
|
Autopilot 1 199B
|
||||||
Session 1 199B
|
Session 1 199B
|
||||||
CoordinateBatchUpdate 1 166B
|
CoordinateBatchUpdate 1 166B
|
||||||
Tombstone 2 146B
|
Tombstone 2 146B
|
||||||
FederationState 1 139B
|
FederationState 1 139B
|
||||||
ChunkingState 1 12B
|
ChunkingState 1 12B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 16.8KB
|
Total 16.8KB
|
||||||
|
|
||||||
Key Name Count Size
|
Key Name Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
vault/sys/policy 3 3.3KB
|
vault/sys/policy 3 3.3KB
|
||||||
vault/logical/0989e79e-06cd-5374-c8c0-4c6d675bc1c9 3 1.8KB
|
vault/logical/0989e79e-06cd-5374-c8c0-4c6d675bc1c9 3 1.8KB
|
||||||
vault/core/leader 1 1.6KB
|
vault/core/leader 1 1.6KB
|
||||||
vault/sys/token 3 1KB
|
vault/sys/token 3 1KB
|
||||||
vault/core/mounts 1 675B
|
vault/core/mounts 1 675B
|
||||||
vault/core/wrapping 1 633B
|
vault/core/wrapping 1 633B
|
||||||
vault/core/local-mounts 1 450B
|
vault/core/local-mounts 1 450B
|
||||||
vault/core/auth 1 423B
|
vault/core/auth 1 423B
|
||||||
vault/core/cluster 2 388B
|
vault/core/cluster 2 388B
|
||||||
vault/core/keyring 1 320B
|
vault/core/keyring 1 320B
|
||||||
vault/core/master 1 237B
|
vault/core/master 1 237B
|
||||||
vault/core/seal-config 1 211B
|
vault/core/seal-config 1 211B
|
||||||
vault/logical/5c018b68-3573-41d3-0c33-04bce60cd6b0 1 210B
|
vault/logical/5c018b68-3573-41d3-0c33-04bce60cd6b0 1 210B
|
||||||
vault/core/hsm 1 189B
|
vault/core/hsm 1 189B
|
||||||
vault/core/local-audit 1 185B
|
vault/core/local-audit 1 185B
|
||||||
vault/core/local-auth 1 183B
|
vault/core/local-auth 1 183B
|
||||||
vault/core/audit 1 179B
|
vault/core/audit 1 179B
|
||||||
vault/core/lock 1 170B
|
vault/core/lock 1 170B
|
||||||
vault/core/shamir-kek 1 159B
|
vault/core/shamir-kek 1 159B
|
||||||
vault/sys/counters 1 155B
|
vault/sys/counters 1 155B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 12.3KB
|
Total 12.3KB
|
||||||
|
|
|
@ -4,41 +4,41 @@
|
||||||
Term 2
|
Term 2
|
||||||
Version 1
|
Version 1
|
||||||
|
|
||||||
Type Count Size
|
Type Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
KVS 27 12.3KB
|
KVS 27 12.3KB
|
||||||
Register 5 3.4KB
|
Register 5 3.4KB
|
||||||
Index 11 285B
|
Index 11 285B
|
||||||
Autopilot 1 199B
|
Autopilot 1 199B
|
||||||
Session 1 199B
|
Session 1 199B
|
||||||
CoordinateBatchUpdate 1 166B
|
CoordinateBatchUpdate 1 166B
|
||||||
Tombstone 2 146B
|
Tombstone 2 146B
|
||||||
FederationState 1 139B
|
FederationState 1 139B
|
||||||
ChunkingState 1 12B
|
ChunkingState 1 12B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 16.8KB
|
Total 16.8KB
|
||||||
|
|
||||||
Key Name Count Size
|
Key Name Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
vault/sys/policy 3 3.3KB
|
vault/sys/policy 3 3.3KB
|
||||||
vault/logical/0989e79e-06cd-5374-c8c0-4c6d675bc1c9 3 1.8KB
|
vault/logical/0989e79e-06cd-5374-c8c0-4c6d675bc1c9 3 1.8KB
|
||||||
vault/core/leader 1 1.6KB
|
vault/core/leader 1 1.6KB
|
||||||
vault/sys/token 3 1KB
|
vault/sys/token 3 1KB
|
||||||
vault/core/mounts 1 675B
|
vault/core/mounts 1 675B
|
||||||
vault/core/wrapping 1 633B
|
vault/core/wrapping 1 633B
|
||||||
vault/core/local-mounts 1 450B
|
vault/core/local-mounts 1 450B
|
||||||
vault/core/auth 1 423B
|
vault/core/auth 1 423B
|
||||||
vault/core/cluster 2 388B
|
vault/core/cluster 2 388B
|
||||||
vault/core/keyring 1 320B
|
vault/core/keyring 1 320B
|
||||||
vault/core/master 1 237B
|
vault/core/master 1 237B
|
||||||
vault/core/seal-config 1 211B
|
vault/core/seal-config 1 211B
|
||||||
vault/logical/5c018b68-3573-41d3-0c33-04bce60cd6b0 1 210B
|
vault/logical/5c018b68-3573-41d3-0c33-04bce60cd6b0 1 210B
|
||||||
vault/core/hsm 1 189B
|
vault/core/hsm 1 189B
|
||||||
vault/core/local-audit 1 185B
|
vault/core/local-audit 1 185B
|
||||||
vault/core/local-auth 1 183B
|
vault/core/local-auth 1 183B
|
||||||
vault/core/audit 1 179B
|
vault/core/audit 1 179B
|
||||||
vault/core/lock 1 170B
|
vault/core/lock 1 170B
|
||||||
vault/core/shamir-kek 1 159B
|
vault/core/shamir-kek 1 159B
|
||||||
vault/sys/counters 1 155B
|
vault/sys/counters 1 155B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 12.3KB
|
Total 12.3KB
|
||||||
|
|
|
@ -4,23 +4,23 @@
|
||||||
Term 2
|
Term 2
|
||||||
Version 1
|
Version 1
|
||||||
|
|
||||||
Type Count Size
|
Type Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
KVS 27 12.3KB
|
KVS 27 12.3KB
|
||||||
Register 5 3.4KB
|
Register 5 3.4KB
|
||||||
Index 11 285B
|
Index 11 285B
|
||||||
Autopilot 1 199B
|
Autopilot 1 199B
|
||||||
Session 1 199B
|
Session 1 199B
|
||||||
CoordinateBatchUpdate 1 166B
|
CoordinateBatchUpdate 1 166B
|
||||||
Tombstone 2 146B
|
Tombstone 2 146B
|
||||||
FederationState 1 139B
|
FederationState 1 139B
|
||||||
ChunkingState 1 12B
|
ChunkingState 1 12B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 16.8KB
|
Total 16.8KB
|
||||||
|
|
||||||
Key Name Count Size
|
Key Name Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
vault/logical/0989e79e-06cd-5374-c8c0-4c6d675bc1c9 3 1.8KB
|
vault/logical/0989e79e-06cd-5374-c8c0-4c6d675bc1c9 3 1.8KB
|
||||||
vault/logical/5c018b68-3573-41d3-0c33-04bce60cd6b0 1 210B
|
vault/logical/5c018b68-3573-41d3-0c33-04bce60cd6b0 1 210B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 2KB
|
Total 2KB
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
Term 4
|
Term 4
|
||||||
Version 1
|
Version 1
|
||||||
|
|
||||||
Type Count Size
|
Type Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
msg 2 1B
|
msg 2 1B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 1B
|
Total 1B
|
||||||
|
|
||||||
Key Name Count Size
|
Key Name Count Size
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
msgKV 2 1B
|
msgKV 2 1B
|
||||||
---- ---- ----
|
---- ---- ----
|
||||||
Total 1B
|
Total 1B
|
Loading…
Reference in New Issue