mirror of
https://github.com/kopia/kopia.git
synced 2026-05-19 04:04:56 -04:00
additional integration tests
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
var (
|
||||
blockIndexListCommand = blockIndexCommands.Command("list", "List block indexes").Alias("ls")
|
||||
blockIndexListAll = blockIndexListCommand.Flag("all", "List all blocks, not just active ones").Short('a').Bool()
|
||||
blockIndexListSummary = blockIndexListCommand.Flag("summary", "Display block summary").Bool()
|
||||
)
|
||||
|
||||
func runListBlockIndexesAction(context *kingpin.ParseContext) error {
|
||||
@@ -34,7 +35,9 @@ func runListBlockIndexesAction(context *kingpin.ParseContext) error {
|
||||
fmt.Printf("%-70v %10v %v\n", b.BlockID, b.Length, b.Timestamp.Local().Format(timeFormatPrecise))
|
||||
}
|
||||
|
||||
fmt.Printf("total %v blocks\n", len(blks))
|
||||
if *blockIndexListSummary {
|
||||
fmt.Printf("total %v blocks\n", len(blks))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user