mirror of
https://github.com/restic/restic.git
synced 2025-03-16 00:00:05 +01:00
Fixes Hound ans CI
This commit is contained in:
parent
920cb3a536
commit
b054ba0d72
1 changed files with 4 additions and 3 deletions
|
@ -136,11 +136,12 @@ func naturaloutput(list []*restic.Snapshot) {
|
|||
|
||||
tab.Write(os.Stdout)
|
||||
|
||||
return nil
|
||||
return
|
||||
}
|
||||
|
||||
//Snapshot provides struct to store snapshots
|
||||
type Snapshot struct {
|
||||
Id string `json:"id"`
|
||||
ID string `json:"id"`
|
||||
Date string `json:"date"`
|
||||
Host string `json:"host"`
|
||||
Tags []string `json:"tags"`
|
||||
|
@ -154,7 +155,7 @@ func jsonoutput(list []*restic.Snapshot) error {
|
|||
for _, sn := range list {
|
||||
|
||||
k := Snapshot{
|
||||
Id: sn.ID().Str(),
|
||||
ID: sn.ID().Str(),
|
||||
Date: sn.Time.Format(TimeFormat),
|
||||
Host: sn.Hostname,
|
||||
Tags: sn.Tags,
|
||||
|
|
Loading…
Add table
Reference in a new issue