Skip to content

Commit

Permalink
Add "--json" flag to SnapshotsCommand (#5758)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 authored and Ilya Kislenko committed Jun 6, 2019
1 parent 51533ff commit a2ff1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/restic/restic.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func RestoreCommandByTag(profile *param.Profile, repository, tag, restorePath, e
// SnapshotsCommand returns restic snapshots command
func SnapshotsCommand(profile *param.Profile, repository, encryptionKey string) []string {
cmd := resticArgs(profile, repository, encryptionKey)
cmd = append(cmd, "snapshots")
cmd = append(cmd, "snapshots", "--json")
command := strings.Join(cmd, " ")
return shCommand(command)
}
Expand Down

0 comments on commit a2ff1c6

Please sign in to comment.